Hi Egon.
Tnx 4 your help, I wasn't working for a week on that. So I apologise for late respond.
Here is original post
__________________________________________________________
If i have two 3d objects (actually 4, I'll get to that latter)
First one O1, is just one simple object.
While second one is actually 3 simple objects (Part1, Part2, Part3) which are linked by parent to child connection, like this
Part1.setOrigin(origin);
Part2.setOrigin(origin);
Part3.setOrigin(origin);
Part1.addChild(Part2);
Part2.addChild(Part3);
world.addObject(Part1);
world.addObject(Part2);
world.addObject(Part3);
So I have three level parent to child connection deepth here. I Hope i'm not doing something wrong here.
Than, when I rotate Part1 for 180 degrees, all 3 parts (1,2,3) are rotateted , that is correct. Than I rotate an O1 object also by 180 degrees.
And than when i try to move those objects, my expectations are that if I move them like this:
Part2.translate(1,0,0)
O1.translate(1,0,0
They should move in same direction. But they don't. O1 is moved by absolute (world) axis. While Part(s) are moved by they own axis. In that specific case, they move just the opposite way <--->.
Best regards and by the way I really love your engine, it helped me so much this far.
____________________________________________________________