[ODE] End point of a
Ray&In-Reply-To=16901.1129119706@www55.gmx.net
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Wed Oct 12 09:58:42 MST 2005
> do somebody know how to convert euler angles vector to ode-compatible
> unit vector? I guess, by this function
Those aren't the same thing. You're asking to convert horsepower to meters.
You can turn Euler angles into a quaternion, or a rotation matrix. Then
you can rotate a unit vector by that quaternion or matrix to get another
vector. However, you have to know what unit vector to start with.
Ask yourself this question: what vector would you want to get out if all
the Euler angles were 0? That's your identity vector. Now, convert the
euler angles to rotation matrix, and translate the identity vector by
that matrix; out comes the vector you want.
Cheers,
/ h+
More information about the ODE
mailing list