Hi all,
I set the body in a constant velocity, with setLinearVelocity before stepSimulation. When the velocity is higher than 1 mps, it looks well. But when I set the velocity below 1 mps, such as 0.1 mps, the body stops unbelievably after a few time steps. I'm very confused about it. Is there a lower limit for velocity in Bullet? And how to change that ?
Thanks at advance!
Daye
Is there a lower limit for velocity in Bullet?
Re: Is there a lower limit for velocity in Bullet?
Body is automatically deactivated if its speed size is too small.
http://www.bulletphysics.org/mediawiki- ... ion_States
(I may insert some code snippet later)
http://www.bulletphysics.org/mediawiki- ... ion_States
(I may insert some code snippet later)
Re: Is there a lower limit for velocity in Bullet?
Thank you very much! It really helps me!
Re: Is there a lower limit for velocity in Bullet?
You're welcome. XD
I call this for every body every time-step.
I call this for every body every time-step.
Code: Select all
btRigidBody->activate();
Re: Is there a lower limit for velocity in Bullet?
as far as I know you could also just do this once and be done with it:
Code: Select all
myRigidBody->setActivationState(DISABLE_DEACTIVATION);