- Home /
Rotating the upper body of a game character
I have an animated character who's upper body I need to rotate.
Rotating the head turned out to be ready easy using the lookAt command built into the animator. However, if I try to manually rotate the upper body, nothing happens. I assume the underlying animation overrules whatever angles I send to the spine.
Is there a strait forward way of doing this. I just need the character to twist at the hip slightly, following the head.
Answer by Cherno · Sep 05, 2015 at 04:01 PM
Rotate the torso in LateUpdate(). This way, the rotation will be applied after any rotations due to animations.
You could also use AddMixingTransform and/or animation layers.
Your answer
Follow this Question
Related Questions
Animations don't work with humanoid avatars 0 Answers
blend tree animation through script? 0 Answers
Get back to non-animated type of the character while animating. 0 Answers
Animator not playing animation on function call from other script 0 Answers
Mecanim "trigger" parameter behaviour with multiple animator layers 1 Answer