Sign in to follow this  
alex_r

ODE and dQFromAxisAndAngle...

Recommended Posts

alex_r    112
Hi, I have a problem in dQFromAxisAndAngle, I made this code to rotate the body in 3 angles, 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); Thanks!

Share this post


Link to post
Share on other sites
Illco    928
There are multiple ways. Look under the rotations section in the ODE manual. The function you use intialises a quaternion to a specific rotations. Initalising it three times to a different rotation does not help -- only the last one counts. Use the dQMultiplyX functions to combine quaternion rotations together.

Greets,

Illco

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this