Using root motion to steer a character
In this recipe, we will use animations to move and steer our character.
Getting ready
To use root motion for steering, you need to prepare a character with at least four animations: Idle, WalkForward, WalkLeft, and WalkRight. WalkRight and WalkLeft should make the character walk in circles (clockwise and counterclockwise). You don't need to create a full circle, just make sure that the start and end poses of the animation look similar. As always, all the animations should have contact points of the feet in the same normalized time. Make sure not to switch the left and right foot. If you start the WalkForward animation with the left foot forward, both WalkLeft and WalkRight animations should also start with the left foot forward, as shown in the following screenshot:

Steering animations using root motion
You can also use the example project; go to the Chapter 04 Character movement\Recipe 03 Using root motion to steer a character directory. You can find the...