Razor Storm
Razor Storm

Reputation: 12336

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?

Upvotes: 2

Views: 1532

Answers (1)

Razor Storm
Razor Storm

Reputation: 12336

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.

Upvotes: 4

Related Questions