[ODE] Objects rotating the wrong way ?

Adam D. Moss adam at gimp.org
Wed Oct 8 20:04:05 MST 2003


Rob Ruck wrote:
 > Am i:
 >
 > - Mapping the bodies orientation axises wrongly from dbodygetrotation; in 12
 > element array the first four are right/x, the second four are up/y and the 
last
 > four are at/z (this is not documented btw, so im going on an assumption)

The 12-element array is a 3x3 matrix (with a fake 4th column for
padding) describing the rotation.  Extracting the rotation
information from this into another form is not *entirely* trivial
(but see the matrices and quaternions faq all over the internet),
but it may be 'used' directly to rotate vectors through matrix
multiplication, or fed almost straight to OpenGL for use as a
modelview.

--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3
"i18n ought to be abbreviated i2n to make it quicker to write!"-snout




More information about the ODE mailing list