Hello,
I'm new to Bullet, but I've worked with other physics engines.
I've set up a small demo with a static platform and a dynamic sphere rigid body that just falls on it. When the sphere hits the platforms it does not bounce at all and just rolls on it (I've noticed this behaviour with all the demoes that come with the Bullet source code as well).
I'd like to make the sphere bounce a bit. Is there a way to control the rebound of rigid bodies? I've been looking at the docs and source code and haven't found a way to set "material properties" of rigid bodies to control this behaviour.
Thanks in advance,
cg
Making things bouncy...
-
- Posts: 20
- Joined: Mon Sep 24, 2007 5:45 am
Re: Making things bouncy...
... are collision callbacks the only way to do this?
Thanks again,
cg
Thanks again,
cg
-
- Posts: 107
- Joined: Fri Sep 19, 2008 6:08 pm
Re: Making things bouncy...
Hi
To make things bouncy you would set its restitution. the btRigidBody class has a restitution method.
Hope that helps.
To make things bouncy you would set its restitution. the btRigidBody class has a restitution method.
Hope that helps.
-
- Posts: 20
- Joined: Mon Sep 24, 2007 5:45 am
Re: Making things bouncy...
Thanks mickey! That's exactly what I was looking for.
cg
cg