- Home /
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!
Answer by Ltank129 · May 08, 2014 at 08:15 PM
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.
Answer by Elwicks · May 08, 2014 at 09:14 PM
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!
Your answer
Follow this Question
Related Questions
Jittering effect when moving character and camera 2 Answers
How to get an object to face in the direction that it is traveling? 1 Answer
Rotation doesn't stop after hitting bounds 2 Answers
Weird shake when I try to rotate player according to Virtual Cameras rotation. 0 Answers
How to "clamp" a y rotation in unity? 0 Answers