Day 29: Weapon animations
- neelvinay17
- Aug 4, 2023
- 1 min read
My plan for the day:
I wanted to add in weapon animations to make the game come to life. To do so, I headed over to mixamo to pick out the animations I wanted to use. What I accomplished:
Once I had picked out the animations I wanted from mixamo, I added them into the scene in Unity. I then added another animation layer to contain all the weapon animations, which I then linked back up the base locomotion blend tree. There were two animations I had picked out: the light attack and heavy attack, common to many games. The light attack would be triggered by pressing the left mouse button, and the heavy by the middle mouse button. In the animation layer for attacks, I then added in two trigger parameters, which I then called in the script for weapon animations. Once the script was complete, all I had to was rig the animation to humanoid, create an avatar, and check rotation along the Y and Z axis.
_____________________________________________________________________________________________________





Comments