Thursday, 9 April 2015

Humanoid animations in Unity! :)

     So we were given a model with some basic set up for animations. Today I have been working on implementing those into my project. Setting up an animator with all the transitions is quite easy to do in Unity. So setting up the transitions itself didn't take up much time. Figuring out all needed connections between animator and the script that would enable playing those animations on specific button presses was more tricky to set up. I set couple triggers so that button presses will trigger appropriate animations and connected them in hopefully reasonable way.

     I have also set random number generation(using .NET library instead of Unity random number generation as I found it not accurate enough) so that whenever player stops walking stand animation or stand idle animation is chosen randomly. I did that in order to use as many provided animations for the character as possible and also because I wanted to make it a bit more various.

Here is the screenshot of my animator window in Unity:


No comments:

Post a Comment