[osg-users] Quat & normalization

Vincent Bourdier vincent.bourdier at gmail.com
Wed Mar 19 03:30:20 PDT 2008


Hi all,

I just have a little question, because I'm not sure of something about quat
:

I have to quat q1 and q2

To pass form q1 to q2 I've made q = q1.inverse()*q2

But even if the result angle looks correct... the vector or rotation looks
very little :

vec : 2.71051e-020,  -2.71051e-020, 1.0842e-019

Sometimes it is 0 0 0...

Do I have to get the vector, normalize it and set it to the quat ? or is the
vector lenght important ?

thanks,

regards,
   Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080319/c2d9c3ef/attachment.html 


More information about the osg-users mailing list