Hi! I want my character’s arms to rotate according to how the right gamepad stick is pressed. This is no problem in itself, however, whenever i apply my animator controller to my character, the bones I try to rotate (in the update function) are not being affected. It is as if the script-controlled rotation is being overridden by the animation that is played. How do I make my script-controlled rotation override the mecanim animation when the player pushes the right stick?
Thanks
Anyone? How about disabling my animation just for the arms? How would I do that?
– alexanderflinkThis must surely be a common problem. Is there no easy solution?
– alexanderflinkOkay, Update! transform.Rotation seems to not work. However, transform.LookAt works just fine (in the LateUpdate function). This is reaaally weird. Could anyone explain this, or is it perhaps a bug?
– alexanderflinkIt's like Louis explained below - your Rotate was adding a rotation to the existing one. transform.rotation will work too. Do not do this in FixedUpdate - that is for physics only. Do it in LateUpdate.
– whydoidoitOh, right. I meant LateUpdate there! I understand now. Thank you.
– alexanderflink