[ODE] Lock a rotation axis
Jon Watte
hplus-ode at mindcontrol.org
Fri May 21 08:53:51 MST 2004
There is no such thing as a "z rotation axis". What you want to do is probably something like "find a rotation that makes the front vector of body B point in the projection of vector R to the XY plane, while making the up vector of B point in the Z direction".
Once you formulate that, constructing a rotation that will take your current orientation and turn it into that is a simple matter of cross and dot products.
Cheers,
/ h+
-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Alessandro Monopoli
Sent: Friday, May 21, 2004 6:40 AM
To: ode at q12.org
Subject: [ODE] Lock a rotation axis
Hi all!
I'de like to "lock" the "z" rotation axis, so that it always is 0.
How can I do this?
Bye and thanks!
More information about the ODE
mailing list