Island Simulation question

xakepp35
Posts: 7
Joined: Tue Aug 21, 2012 6:07 pm

Island Simulation question

Post by xakepp35 »

I am using btDiscreteDynamicsWorld and btRigidBody to model space physics.
I had turned off world's gravity for some purposes.
Every still object then starts to freeze after several seconds or so.
(e.g. objects with zero linear velocity and non-zero angular velocity stops rotating)

i think this is due to island simulation.
How can i turn off island simulator sleeping or otherwise "reenable" frozen objects?
anthrax11
Posts: 72
Joined: Wed Feb 24, 2010 9:49 pm

Re: Island Simulation question

Post by anthrax11 »

You can prevent bodies from deactivating with body->setActivationState(DISABLE_DEACTIVATION) or reactivate them with body->setActivationState(ACTIVE_TAG).

By default, bodies are deactivated after being still for some time to speed up the simulation. I don't think it's related to islands.
xakepp35
Posts: 7
Joined: Tue Aug 21, 2012 6:07 pm

Re: Island Simulation question

Post by xakepp35 »

Thanks, this helps a lot! :D