Is there a lower limit for velocity in Bullet?

Post Reply
daye
Posts: 8
Joined: Mon Sep 04, 2017 2:59 am

Is there a lower limit for velocity in Bullet?

Post 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
hyyou
Posts: 96
Joined: Wed Mar 16, 2016 10:11 am

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

Post 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)
daye
Posts: 8
Joined: Mon Sep 04, 2017 2:59 am

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

Post by daye »

Thank you very much! It really helps me! :lol: :lol: :lol:
hyyou
Posts: 96
Joined: Wed Mar 16, 2016 10:11 am

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

Post by hyyou »

You're welcome. XD

I call this for every body every time-step.

Code: Select all

btRigidBody->activate();
PcChip
Posts: 33
Joined: Sun May 20, 2018 3:09 pm

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

Post 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);
Post Reply