- Home /
C# how to have a part of an object rotate while animation is being played
i wanted to know how i can rotate an characters pelvis for an fps game while an animation is playing
i have animations playing and i want to rotate a certain joint which is inside the gameobject playing the animation, how do i do it?
Answer by Josh1231 · Aug 08, 2014 at 11:40 PM
I rotated it with late update, this is actually very old, don't even have that model or project anymore, but this is how I did it if you want to know
Answer by cdrandin · Jul 25, 2013 at 10:44 PM
Check out this tutorial provided by Unity. I followed it along and remember that it used an animation controller and when one animation was playing, then another triggered, you could freeze the animation of a certain limb object and have the animation completely override the whole.
Example. Player is walking about, legs, arms and head all in motion, then next animation is called "waving hand". While this is called the animation controller restricts movement in the arms and lets the "waving hand" animation play, thus creating an animation where the player is walking and using the wave animation.
Tutorial: http://unity3d.com/learn/tutorials/projects/stealth
Just watch the video regarding player animation. Should be helpful.
it doesn't work with my animator clips, doesn't let me add them
Your answer
Follow this Question
Related Questions
C# scriping help 0 Answers
Basic scripting help (FPS Tutorial) 1 Answer
SetActive() Object reference not set to an instance of an object. 1 Answer
error CS1061 anybody might help me? 1 Answer
Need help with launching mechanic 0 Answers