O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - animate the runner

Let's get that RN RuNning!

  1. Click on the green Y-axis cone to switch into top view. Pan and zoom so that the hallway fills the Scene view.
  2. In the Hierarchy panel, select the runner Game Object.
  3. In the Animation window, click on the Record button.
  4. Name the new animation animRun. A new, reusable animation appears in the Project panel.
  5. Punch in the following values on frame 0:
    • Position.x: 6.5
    • Position.y: 1.2
    • Position.z: -31.5
    Time for action - animate the runner
  6. Click on the little, gray dash symbol to the right of the Rotation.x value. You'll find a small drop-down menu. Choose Add Curves from that list. We're adding curves to the rotation values because ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required