How to do it...

To use root motion for steering, follow these steps:

  1. Import your character with Idle, WalkForward, WalkLeft, and WalkRight root motion animations into Unity.
  2. Select the character asset file and go to the Inspector. Make sure the Animation Type is set properly for your character (Generic or Humanoid). If you are using a Generic character, make sure to set its Root Node.
  3. Go to the Animation tab and select the Idle animation. Select all the Bake Into Pose options and set the Base Upon option of the Root Transform Rotation to Original.
  4. For the WalkForward animation, select the same options as for the Idle animation, but uncheck Bake Into Pose for Root Transform Position (XZ).
  1. For the WalkLeft and WalkRight animations, set all ...

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.