Animation flipping (the wrong way) when rotating I'm working on a Roll animation for my character and it isn't behaving porperly. On frame 12 the "W" component of the "hip" bone becomes negative (using quaternions). Then between the frame 20 and 32 it tries to interpolate towards a positive number, but it flips around the wrong direction. How do I fix this? If that is not possible then what is the best way to handle this kind of animation?



P.S. I'm using version 2.77.
Your issue comes from the quaternion rotation of the hip bones flipping in the W value, as you guessed. The fix here is to negate the W value on frame 40 so that the hip doesn't have to do a full rotation. Setting the Rotation keyframe to [-1, 0, 0, 0] on frame 40 fixes the problem because the W value on frame 20 is -0.961.