Hi @Esenthel,
I didn't noticed your feedback :\
I'm working again on this part of my game, and can't fix this... i don't know what you mean, since actor.matrix(T.matrixScaled()); is actually working as i expected to work. I can see with Physics.draw(); that physical body is actually positioned has it appears in the World Editor.
So, the GroundObject class i mentioned works quite well, except on Android... that i cannot understand.
If i use Physics.draw(); when running on Android, i can't see the physical object... my guess is that it's not being created in Android for some reason :(
Why this works in Linux platform and not in Android? How to overcome this behavior?
Also, i tried this with success in Linux and without success in Android (just same problem):
Code:
void create(Game.ObjParams &obj)
{
super.create(obj);
//base.create(*T.mesh, ~0 , true);
base.createPhys(*T.mesh, VTX_POS|FACE_ID, true);
//mesh->setBase();
PhysPart part;
part.createMesh(base, true);
part.transform(T.matrixScaled());
actor.create(part);
//actor.create(*phys);
//actor.matrix(T.matrixScaled());
actor.group(AG_GROUND);
}
Thanks!