Adding a Blend Tree to the player's existing animator controller
We will begin with the player character, which we previously worked with in Chapter 3, Interacting with the Environment:
- Open the
Chapter7_Start
scene in the Unity project.The scene contains the
FPSController
prefab, which already has a character controller, animator controller, and a control script attached.We will start by testing the controller setup to determine the modifications we are going to make.
- Preview the game by pressing the Play button in the top-center of the unity interface.
When moving from side to side (by pressing the A and S or the cursor keys), there is no apparent change in the animation.
We will improve this in the next few steps by adding strafing animation, which will add some subtle variation to the character animation when the player moves to the left and right.
Adding strafing animation to the player character with a Blend Tree
We will start by implementing the Blend Tree in the animator controller...