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.

Keyframing gravity

Keyframing gravity

In this chapter, we'll look at keyframing in combination with dynamics. And the first thing I want to show you is how to resolve an issue here. When I press play, you will see that although the dominos all fall over just fine. After they're supposed to have settled down, they're still kind of moving around and even jumping up and down a bit. The reason this is happening is because we have a very high gravity of 980. That was necessary for this particular scene, because it was modeled at one to one scale. And this does highlight some of the issues that you may encounter when modeling objects that are not at a 1, 100 scale. However, we can resolve this. All we have to do is keyframe the gravity in the bullet solver node. I'll play it back until all of the dominos have fallen and here around frame 70 or so. I'll select bullet solver node in the Outliner and keyframe the gravity. Select Gravity Y. And then in the Channels menu, choose Channels Key Selected. And we've got a keyframe here…

Contents