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?
Island Simulation question
-
- Posts: 72
- Joined: Wed Feb 24, 2010 9:49 pm
Re: Island Simulation question
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.
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.
-
- Posts: 7
- Joined: Tue Aug 21, 2012 6:07 pm
Re: Island Simulation question
Thanks, this helps a lot! 
