From: Philip Nemec (nemec++at++aechelon.com)
Date: 03/12/2001 08:12:28
The rotation part of a transformation matrix can be converted to euler
rotations (HPR) but it is not a one-to-one mapping, particularly when
pointed straight up or down. Non-uniform scale (XYZ not scaled the same
amount) is a bit funkier since the scale values share part of the
transformation matrix with rotation. You can derive numbers, but it is
best to shadow the scale information yourself.
As for good interpolation, convert the rotation to quaternions then use
pfSlerpQuat. Linearly interpolating the position is fine.
If you want to follow a path made up of multiple positions and rotations
you'll want to use something other than linear interpolation (some
higher order curve rather than a series of straight lines).
This archive was generated by hypermail 2b29 : Mon Mar 12 2001 - 08:11:47 PST