O'Reilly logo

Unity Character Animation with Mecanim by Jamie Dean

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

Implementing the turn animation

In this case, there is a single animation sequence that will be played when the zombie is turning to the right or left.

The FBX file containing the animation has already been imported. The next step is to add the resulting motion clip to the animator controller in its own state.

Adding the turning state

The turn animation is a single looping sequence used for a left or right turn:

  1. Make sure that the Animator panel is visible and the base layer is active.
  2. In the Project panel, locate the PACKT_Animations folder and click on it once to view its contents in the Assets panel.
  3. Locate the zombie_turn asset and expand its hierarchy by clicking on the arrow next to its name.
  4. Drag the zombie_turn animation into a blank area of ...

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