Page 1 of 1

Is there a lower limit for velocity in Bullet?

Posted: Thu Jul 19, 2018 2:16 pm
by daye
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

Re: Is there a lower limit for velocity in Bullet?

Posted: Thu Jul 19, 2018 3:04 pm
by hyyou
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)

Re: Is there a lower limit for velocity in Bullet?

Posted: Fri Jul 20, 2018 12:10 am
by daye
Thank you very much! It really helps me! :lol: :lol: :lol:

Re: Is there a lower limit for velocity in Bullet?

Posted: Fri Jul 20, 2018 10:58 am
by hyyou
You're welcome. XD

I call this for every body every time-step.

Code: Select all

btRigidBody->activate();

Re: Is there a lower limit for velocity in Bullet?

Posted: Sat Jul 21, 2018 2:05 am
by PcChip
as far as I know you could also just do this once and be done with it:

Code: Select all

	myRigidBody->setActivationState(DISABLE_DEACTIVATION);