Animation and joystick Input

Hi guys,

I’m currently animating a character for the first time in unity and i would like to ask you guys how to proceed :

In fact I want to animate the arms of my character based on a joystick input (0 = arm is bent 1 = arm is stretched)
But I don’t know what is the best way to do it.
I can do it programatically but maybe that’s not the best way to do it :wink:
I have understand how to fire animation using mecanim but i can’t find if what i want to do is possible ? or maybe with the legacy system ? (I’m working on unity free)

Thanks for your help !

Duke

Ok I’have been able to make the animation that I want using blend trees.
Just made 2 animations one with bent arm and another with stretched arm and then i have been able to use a blend tree in order to get intermediate positions based on a parameter =)

Blend Trees Tutorial :