Set rotation is jittering back to original rotation

Hey everyone,

I am currently trying to move my character’s spine using the camera pivot point’s rotation so that he looks with the camera. I basically just set it using transform.localRotation = Pivot.transform.localRotation in LateUpdate, which works for the most part, but a debug line drawn from the player shows that he keeps jittering back to the original rotation, which will probably end up being an issue. It is invisible without the debug line, the player looks with the camera normally. What can I do to fix this?

Thanks in advance!

Does the character model have any animations active on it? Depending on the modelling program and animation you are using that could be an influence. The scripting would be telling it to look one way, and the animation telling it to look straight forward.

Thanks Ltank, your answer was right and made me do some digging. I’m using mecanim to animate and unchecked my “Animate Physics” which I learned changes when the animations are actually applied, it seems to be working now!