RE: [Algorithms] Quaternion pre/post-multiply and pitching problems
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2001-08-30 17:33:13
|
> I think i'm using relative coordinates. I use this scheme: > > - calculate delta x-movement > - calculate delta y-movement > > pitch_quat.calculatepitch(delta_y) > yaw_quat.calculateyaw(delta_x) > totalrotation_quat = pitch_quat*yaw_quat*totalrotation_quat This can't work, because calculatepitch() and calculateyaw() need to be done _in the target's coordinate space_ (i e assuming the target is pointing straight ahead). If you do calculations using a single quat, they're done in absolute coordinates. Cheers, / h+ |