According to Rune’s answer at the above link I can set a curve for the properties “localEulerAngles” and for “localEulerAnglesBaked”. However when i try to do that it doesn’t work.
AnimationUtility.SetEditorCurve( clip, path, typeof(Transform), "localEulerAnglesBaked.z", zEulerCurve);
// this doesn't seem to produce any curve
And that’s a great shame because quaternion curves aren’t working very well at all. They interpolate in the wrong direction sometimes, doing a full 360* spin in the wrong direction. Also the values of keyframes occasionally get wrapped from 0 upto 360*, or vice verse, which is not what I want at all. It effectively produces the same problem, the object rotates in the wrong direction to get to the destination angle.
Is there a solution to this? Would appreciate any help, explanations, bumps, anything.
Thanks.