Hi,
I'm using Bullet Physics for a university project and we're having trouble with rigid bodies coming to rest and then being unable to move them afterwards using any of setWorldTransform, setLinearVelocity, applyCentralImpulse or applyCentralForce. We are using:
btContinuousDynamicsWorld
btSequentialImpulseConstraintSolver
btDefaultCollisionConfiguration
The objects are btSphereShapes with btDefaultMotionState falling on a btHeightfieldTerrainShape or btBoxShape with mass of zero. We apply forces to the spheres using applyCentralImpulse on keypress to move them around the world. Our timesteps are appropriately small (based on the framerate of our program).
What could the problem be here? I am willing to post sample code from our program if you can suggest where the problem might be.
Thanks,
Leo
Trouble with objects getting stuck when they stop.
-
Leo_E_49
- Posts: 2
- Joined: Tue Mar 02, 2010 1:57 am
-
Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Trouble with objects getting stuck when they stop.
Before changing the position, applying an impulse or force call
Thanks,
Erwin
Code: Select all
object->activate();
Erwin
-
Leo_E_49
- Posts: 2
- Joined: Tue Mar 02, 2010 1:57 am
Re: Trouble with objects getting stuck when they stop.
Thanks Erwin. 