How to do it...

To make the character jump, follow these steps:

  1. Import the character and repeat all the steps from the Using root motion to steer a character, Using animations for better looking transitions, and Using root motion for a 180 degrees turn recipes to have a character that is able to move properly.
  2. In the Animation Import Settings of the character, find your additional Jump, InAir, and Land animations. You may need to add them as new clips by clicking on the plus button in the Clips section (Animations tab) and choosing the appropriate animation as the source.
  3. Check all the Bake Into Pose options for in Jump, InAir, and Land animations.
  4. Open the Animator Controller (this should be the same controller as in the previous recipe) ...

Get Unity 5.x Animation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.