Search code examples
ogrebulletphysics

Bullet physics engine: why does gravity not accelerate?


I have some rigidbodies with mass of 30 and restitution of 0.6 and friction of 0.

Gravity is set to -15 (I have also tried higher values up to -1000).

The rigid bodies fall very slowly and also do not accelerate.

What possible things could be causing such behavior?


Solution

  • Ah I figured it out. It was a stupid mistake on my part: I had player controls for the object and I was setting its velocity with "setLinearVelocity". This effectively removes the gravity build up causing it to not accelerate.