[ODE] dQFromAxisAndAngle
Alexandre Ribeiro de Sá
alex_r at vortexentertainment.com
Tue Mar 29 10:54:45 MST 2005
Thanks for the answer,
I like to develop a airplane demo to test my engine, I'm using ODE for
collision test and I found many problems to rotate the model in OGL, I
need to rotate the axis, anyone know any way to do it in ODE???
Pablo send this code to me, I'm working now, but I'll test in home, it
it work I'll post here...
dRFromEulerAngles (R, x, y, z);
dRToQ (R, Q);
dBodySetQuaternion (v_Body[sphereInt].prt_ODE_Body, Q);
Thanks
Cristian Bianchi wrote:
>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