[ODE] End point of a Ray&In-Reply-To=16901.1129119706@www55.gmx.net

Eugen Lofing lofing at gmx.net
Wed Oct 12 16:06:35 MST 2005

OK, thank you very much!

I tried it - it must be right. But dosn't work by me
because I probably have problem with my input parameter - I have euler
angles, so I just tried to divide it euler vector by "norm" to normalize
this vector, but in euler its several, I guess.

do somebody know how to convert euler angles vector to ode-compatible
unit vector? I guess, by this function

void dGeomRaySet (dGeomID ray, dVector3 start, dVector3 dir);

is parameter dir a unit lenght vector, isn't it?

my input:
rot - has euler notation of angles 
float norm = sqrt(rot[0]*rot[0] + rot[1]*rot[1] + rot[2]*rot[2]);
rot[0] /= norm;
rot[1] /= norm;
rot[2] /= norm;

dGeomRaySet(..., rot[0], rot[1], rot[2]);

Thank you once more.

Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

More information about the ODE mailing list