[ODE] dQFromAxisAndAngle

Cristian Bianchi cris at cris.hspace.name
Tue Mar 29 14:46:13 MST 2005


dQFromAxisAndAngle( quat, ax, ay, az, angle ), fills the quaternion quat
with the computed rotation, from the axis and angle transform you use as
parameter, so in your code, the only valid computation is the last! the
first and the second are over written by the last!
regards,
Cristian Bianchi

----- Original Message ----- 
From: "Alexandre Ribeiro de Sá" <alex_r at vortexentertainment.com>
To: <ode at q12.org>
Sent: Tuesday, March 29, 2005 2:09 PM
Subject: [ODE] dQFromAxisAndAngle


> Hi, I have a problem in dQFromAxisAndAngle, I made this code to rotate
> the body, but only rotate the last (z), how can I rotate 3 angles?
> dQFromAxisAndAngle (X,1,0,0,x);
> dQFromAxisAndAngle (X,0,1,0,y);
> dQFromAxisAndAngle (X,0,0,1,z);
> dBodySetQuaternion (v_Body[sphereInt].prt_ODE_Body,X);
>
>
> Thx
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list