In this recipe, we will use animations to move and steer our character.
Using root motion to steer a 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...