From the course: Maya: Dynamic Simulations with Bullet Physics

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Adjusting bounce and friction

Adjusting bounce and friction

Our simulation is looking pretty good, but it would look better if we had a little bit of bounce on that ball. So let's add bounce. In Bullet, bounce is known as a restitution. And it needs to be added to both of the colliding objects. I'll select the ball and the ground plane, go over to the channel box and scroll down. And you'll see Friction and Restitution. Friction is set to its maximum of one by default. Restitution is bounce, and with the restitution of zero, we get no bounce. If we set restitution to its maximum of one for both the ball and the ground plane, then we would get some strange results. Press Play and you'll see the ball bounces up very high and if I dolly back a little bit here we can see that really clearly. That's not a realistic result. The ball is not obeying the laws of physics. There's no way it could bounce up higher that its initial position. What we'll do is just reduce that restitution to a lower value of let's say 0.8. Rewind and play back. And now we're…

Contents