Time for action – animate the runner
Let's get that RN RuNning!
Click on the green Y-axis cone to switch into Top view. Pan and zoom so that the hallway fills the Scene view, like it did when we were building our lighting rig.
In the Hierarchy panel, select the
runner
GameObject.In the Animation window, click on the Record button.
Name the new animation
animRun
. A new, reusable animation appears in the Project panel.Punch in the following values on frame 0:
Position.x: 6.5
Position.y: 1.2
Position.z: -31.5
If those values are already punched in when you create the animation, click on one of them and press the Enter key to make sure Unity registers a diamond-shaped keyframe to remember those settings.
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 we'll need to modify them later.Go to frame 120.
Move
runner
up along the Z-axis to the top-right corner...