- Home /
Rotate head of an animated character
Hello,
I am trying to rotate the head of an animated humanoid character. I believe that the head's rotation is controlled by an animation so it is not rotating like i want it to. How can I overwrite the animator so I could set the rotation of the head manually but still keep the animation running?
Basically, I was going to use this : head.rotation = headRotation;
(head being a Transform and headRotation being a Quaternion).
Thanks for the help!
Interested in hearing more about this as well. I just happened to be trying to do this.
I tried to setup the Animator layer to use a mask that excludes the transform of the joint I am trying to control but still, it seems to just stomp on any changes to that transform that I try to make.
Answer by bobisgod234 · May 02, 2017 at 03:58 AM
Do your changes in LateUpdate() instead of Update(). This will be called just before rendering, after the animator has applied it's changes to the bone transforms.
Your answer
![](https://koobas.hobune.stream/wayback/20220612121104im_/https://answers.unity.com/themes/thub/images/avi.jpg)