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?
-
- Posts: 96
- Joined: Wed Mar 16, 2016 10:11 am
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)
-
- Posts: 8
- Joined: Mon Sep 04, 2017 2:59 am
Re: Is there a lower limit for velocity in Bullet?
Thank you very much! It really helps me!
-
- Posts: 96
- Joined: Wed Mar 16, 2016 10:11 am
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();
-
- Posts: 33
- Joined: Sun May 20, 2018 3:09 pm
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);