O'Reilly logo

Mastering Unity 5.x by Alan Thorn

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

Animating the camera

Dead Keys needs a first-person camera that's effectively on rails. The camera must slowly follow a pre determined path through the scene; its staggered movement from one location to the next is a sign of player progress. So far, a set of specific waypoints have been created (in the previous section), defining locations the camera stops at on its journey to engage with oncoming zombies.

To create this motion for the camera, multiple animations must be created; one for each journey between waypoints (one for A to B, then another for B to C, and then another for D to E, and so on). Before creating the animations, however, it's important to first structure your object hierarchy for the camera, as needed. Changes to your object ...

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