Player Walking Animation – Blend Tree
Day 019 #PanicRoom
Day 084 #100DaysOfGameDev
Day 096 #100DaysOfCode
With the 8-axis player movement animations completed it was time to import them into Unity and create a custom Blend Tree to have the player move the way he should. It also meant tweaking the PlayerMovement script a little bit as well to set up the Parameters the Animation State Machine would need to see in order to work properly.
It took a while to get all the animation states entered in, but once I did it was a simple matter to add them to the blend tree and tweak out the positions where each state should trigger. A useful tool was the diagram showing how to calculate the position of a point on a grid 45-degree out from origin at a set radius. For me, this ended up being about 0.701.