2.5D Certification: Adding Player Roll animation
First, I got the animation from mixamo.com. Make sure to check In Place so that we let the Physics controller do the forward movement.
In terms of importing the animation, I had to bake some positions into the Pose to stop it from making funny movements:
Now, I’ve added the animation to the Animator Controller. Transition will be performed by a trigger:
Switching back to Idle or Running will depend on Speed.
I added the listener to Left-Shift key to trigger the animation:
Now the Player can roll from idle or running state by pressing Left-Shift.