Bullet physics engine, how to freeze an object?

Posted by Markus on Stack Overflow See other posts from Stack Overflow or by Markus
Published on 2010-06-10T13:52:58Z Indexed on 2010/06/17 12:43 UTC
Read the original article Hit count: 208

Filed under:
|
|

Using Bullet 2.76 I'm trying to freeze an object (rigid body) so that it instantly stops moving, but still responds to collisions.

I tried setting it's activation state to DISABLE_SIMULATION, but then it's virtually nonexistent to other objects. Furthermore, if objects "collide" with it when it's disabled, strange things begin to happen (object's falling through static bodies, etc.)

I suppose, temporarily converting it to a static rigid body could work, but is there an existing "native" way to achieve this on Bullet's side?

Edit: Is there a way to turn off gravity for a specific object?

© Stack Overflow or respective owner

Related posts about physics

Related posts about game-physics