Not sure if others were interested in it, but I just checked in a method
for OpenGLContext.quaternion.Quaternion that lets you do spherical
linear interpolation (slerp) between two quaternions. This is useful if
you want to animate between two rotations using fractional values.
I'm thinking I may try to grok the spline-on-rotation interpolation code
(so that with 5 or 6 rotations you get a nice fit curve that doesn't
make the rotations mechanically switch direction at the sample points).
It looks pretty hairy though, so might just leave it with slerp.
Enjoy yourselves,
Mike
_______________________________________
Mike C. Fletcher
http://members.rogers.com/mcfletch/
|