From the course: Cert Prep: Unity Certified Associate Game Developer Animation and Cinematics

Unlock the full course today

Join today to access over 25,200 courses taught by industry experts.

Animating with Animation Curves

Animating with Animation Curves

- [ Narrator] In the preceding movie, we created some rotation motion to each of these three different food items, cheese, banana, and olive. In this movie, we're going to move forward and add some additional programmatic motion, we're going to be using animation curves. And this is a graph structure I'm going to using to, for example, take the cheese and make that move up and down. In addition to its rotation, as though it were a collectible object in a 3D platform game. To get started doing this, I'm going to create a completely new script file. So I'll move to the Project panel, right click, choose create, and then select C sharp script. And I'm going to call this mover. And I'll drag and drop the newly created movers script on to the cheese and release my mouse. So if I select cheese in the inspector, it has both the rotator and the movers script. To start controlling this script, I'm going to double click…

Contents