[ODE] dQFromAxisAndAngle
Pablo Barbáchano
pablobarbachano at yahoo.es
Tue Mar 29 15:32:24 MST 2005
--- Alexandre Ribeiro de Sá <alex_r at vortexentertainment.com> wrote:
> 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);
>
Prabably better to use:
dRFromEulerAngles (R, x, y, z);
dRToQ (R, Q);
dBodySetQuaternion (v_Body[sphereInt].prt_ODE_Body, Q);
or something like that... I havent tested it.
>
> Thx
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
______________________________________________
Renovamos el Correo Yahoo!: ¡250 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
More information about the ODE
mailing list