[ODE] rotation

Mathias Weber mweb at gmx.ch
Sat Jan 14 02:49:12 MST 2006


hi

caglar wrote:
> how can i apply rotation to an object from ODE to  Ogre platform. I tried to use quaternion but i couldnt do that. Is  there anyone knows about that?
>   
>   --caglar
>    

i'm using ode with ogre without problems, if you get any problems just
have a look at the ogreaddons ogreode or at the affiliated project
Gangsta Wrapper (http://sourceforge.net/projects/gangsta). Both give you
the chance using ode with ogre.

const dReal* orientation = dBodyGetQuaternion(_body);
Ogre::Quaternion _orientation;
_orientation.w = (Real)orientation[0];
_orientation.x = (Real)orientation[1];
_orientation.y = (Real)orientation[2];
_orientation.z = (Real)orientation[3];

i hope this helps.

Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 548 bytes
Desc: OpenPGP digital signature
Url : http://q12.org/pipermail/ode/attachments/20060114/183f7a56/signature.bin


More information about the ODE mailing list