 Alright guys, welcome back. Let's get this ball bounce animation finished So if you've been sticking with this exercise so far what we've got is a ball that Starts in the air bounces down has a few bounces. It's got squash and stretch. It's got a nice weighty look to it So far so good, but to add a little bit more realism We're going to try and move this from one side of the screen to the other have a little bounce and then Roll to a nice stop. So we're going to put that on in place Right now what I'm going to do is I'm going to select this controller here Which is the one that's controlling the position of the ball and what I want to do is add another layer of animation to it Now there are different ways I could go about this, but my personal favorite, which I found quite neat It's to put it into a group and then animate the group and what that means is that I'm putting animation Onto something clean. So it's kind of like an an empty vessel that I can put keyframes into So I'm going to select this controller. I'm going to hit control and G on my keyboard And I'm just going to call this movement Just so that I can find it in my outliner if I ever need to And what that will allow me to do you can see there are no keyframes on here now But I can move the ball side to side kind of on a fresh timeline, which is How I prefer to work so Let's get this animation set up. So I'm going to go back into my side view And I want the ball to start currently where it is. So on frame one. I'm going to press Yes, and then a little bit later. Let's just expand the timeline a little bit. Let's go to about frame 30 I want it to be in the air actually About frame 33 I'm going to move the ball. I've got about 12 units to the right Now I'm going to set that keyframe and then I'm going to bounce it back. So I'm going to go Think in this case to about frame 60. So well after it stopped bouncing so it gives it time to roll I'm going to move it back not all of the way to about there. So now I'm about four units away from where I started Okay, so that's the base of the movement. Let's have a look how that is looking Okay, not bad, but it's picking up and losing speed at the wrong times And that again as it was with the bouncing is down to the way that the curves are working in the graph editor So let's sort that out So I'm going to go a window animation editors graph editor I'm then gonna just scale this bad boy up a little bit. Go on chief get bigger get bigger And then I'm gonna press a okay. So this is that the problem When it hits the wall, which is here. It's this keyframe The line should be straight because it's hitting a solid surface So I'm gonna slap this keyframe and make the lid linear tendons there I'm also Gonna make this one linear to because I want to start off at constant speed and Then I just want to come to a more gradual halt than it currently is doing So I'm gonna start this keyframe here again. I'm gonna break me tangents Break those bad boys And then I'm just gonna smooth The curve out like that Now as you can see that's had a bit of a weird effect because now it's going to bounce off the wall faster um Than it originally came off the wall. So what I'm going to do is select this keyframe Hold shift on my keyboard and then with my middle mouse button. I'm just going to drag And then That'll allow me to just come to a more gradual stop and match the speed that I had before Okay, so hopefully that's going to look how I want it to look. So let's um Rewind that and have a look That's not bad. It is still bouncing off the wall a little quicker than I would perhaps have liked it to But overall I'm fairly happy with it um Yeah, I think I'm just going to remove this keyframe Because I don't know what it's doing and then just check that again Yeah, so I just think on this keyframe. I'm just going to move it back a bit I'm going to reset that See what we get Yeah, and we've got a nice little rollback animation as well so The reason we get that rollback animation Is a happy accident and it's because My curve has gone past the the original spot But that's kind of what you're looking for in a ball balance animation anyway So we're basically finished The one last thing I'm going to do you can follow me in this step if you want to or not I'm just going to put in Um a bit of geometry So that it looks like the ball's bouncing off it. So I'm just going to create a cube and move it over here And then I'm going to scale it up and it's just going to kind of represent a wall And there we go. I just need to now go into this view because it's not going to be thick enough in this direction There we go And then I'm just going to put it into edge mode Slap this bottom edge. I'm going to press control and E to extrude it Then I'm going to go straight into my move tool I'm going to pull that edge along just to make a bit of a flaw And put it back into object mode Okay, and now it'll look like it bounces off A wall. Hooray! Amazing. So if you want to preview this without the controllers on You just go to show And then you deselect nirbs curves and then Choose an angle you like the look off. I'm just going to make sure that is Connecting with the wall Isn't quite so I'm just going to reposition that That's pretty nice And there we go a ball bounce animation So hopefully that has given you everything you need to know It's a very sort of basic introduction to character animations So it introduces timing it introduces squash and stretch Introduces giving weight to a character in this case a ball And it also covers some useful tools in Maya such as the graph editor So that brings this exercise to an end Make sure that you subscribe if you want more exercises like this one And please like this video and any of the other steps that have helped you out If you've got any questions or you need any help then you can either email me or you can drop a comment below the video And the final thing I'd like to do in this video is thank you for watching and I'll see you in the next one