[ODE] converting opengl matrices to ODE positions. or something!
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Sun Sep 11 11:11:39 MST 2005
> I notice that elements 3, 7, and 11 (counting from 0) of the rotation
> matrix are not used. Is this significant?
That's where the padding goes for the rotation matrix -- it's padded to
multiples of 4 floats (as described in the docs).
> Also, if I use scaling on the gl matrices, will this method of
> conversion still work?
Regarding scaling, you can do whatever you want to the matrix after
getting it. If you want to scale the object, but not the position, then
only scale GL matrix indices 0..11; if you want to scale the entire
world, then scale all of the values.
Cheers,
/ h+
More information about the ODE
mailing list