Making the ball bounce

noatom
Posts: 12
Joined: Thu Nov 08, 2012 2:03 pm

Making the ball bounce

Post by noatom »

So I followed up this tutorial:
http://bulletphysics.org/mediawiki-1.5. ... ello_World

But I noticed that the ball doesn't bounce.I tried to find somethng useful but no one ever explained how to actually make it bounce.

I found this:
use fallRigidBody->setRestitution(1.0f); well,I used this,but still the ball doesn't bounce.

What would be the solution?
137Cs
Posts: 5
Joined: Sun Nov 11, 2012 6:18 pm

Re: Making the ball bounce

Post by 137Cs »

You need to set a non-zero coefficient of restitution for the ground as well.
noatom
Posts: 12
Joined: Thu Nov 08, 2012 2:03 pm

Re: Making the ball bounce

Post by noatom »

thanks it worked