#100DaysOfCode#100DaysOfGameDevAnimationGame DevIllogical BaconPanic RoomScript-writingUnityVideos

Player Walking Animation – Blend Tree

Day 019 #PanicRoom
Day 084 #100DaysOfGameDev
Day 096 #100DaysOfCode

PlayerMovement script

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.

VERY useful tool for calculating Circle Units

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.

player animation states
animation blend tree

Leave a Reply

Your email address will not be published. Required fields are marked *