Okay, then I write my problem:
I've created my own inherited class based on Game::Obj. So I have to set all of these get/set parameters for matrix and position (because in base Game::Obj its all NULL). The position get/set is works great, I used my object's actor's position. But the matrix have one issue: if I load a world I created in the editor (I placed my object somewhere, not center), then the object is on the center of the world, same when I create it by code :
Code:
Game::World.objCreate(*Game::Objs("myObj.obj"), Matrix(1, Vec(15,0,5));
my obj matrix set is also based on actor's matrix:
Code:
void MyClass::matrix(C Matrix &matrix)
{
actor.matrix(matrix);
}
The most confusing thing is if I directly set the actor's matrix from code myobjs[0].actor.matrix(Matrix(1,Vec(5,0,5))); its works okay.
Holy f*ck, problem solved. I was super careless, I forgot to set the matrix from the ObjParams at the create.
But I still have the question, is it right if I use object matrix get/set simple from/to the object's actor matrix?