Page 1 of 1

Move non dynamic entity

Posted: Tue May 05, 2009 3:28 pm
by Fax3D
Hi all,

I've created a CompoundBody adding to it some Entity, and then i make it non dynamic via CompoundBody.makeNonDynamic().
What i want to do is to apply some rotation/translation to the entire CompoundBody. I tried with CompoundBody.Rotate and some other stuff but not works, only if the CompoundBody is dynamic. There's a way to do this with non dynamic objects?

Thanks for helps!

Fax3D

Re: Move non dynamic entity

Posted: Wed May 06, 2009 12:16 am
by Norbo
This is most likely due to the object's inactivity. Kinematic objects will fall asleep; a sleeping compound object will not propagate its own rotation to its children since no updates are occurring. If you call (CompoundBody).activate() when you perform a rotation or just set the body's isAlwaysActive flag to true during initialization it should work.

Re: Move non dynamic entity

Posted: Wed May 06, 2009 7:40 am
by Fax3D
Thanks a lot Norbo, now it works like i should expect!

Fax3D