[ODE] How to use the rotation matrix returned by dGeomGetRotation
Jon Watte
hplus-ode at mindcontrol.org
Mon Oct 11 08:50:06 MST 2004
> dReal const * P = dBodyGetPosition( myBody );
> memcpy( &matrix[12], P, sizeof(float)*3 );
That is correct. I pointed this error out to John off-list,
but not to the list; thanks for doing that!
Another problem could be that ODE might return something
other than 0 in the [3] elements of the vectors, so you
probably want to set those to 0 rather than just memcpy()
over.
Cheers,
/ h+
More information about the ODE
mailing list