> > > What I need to do is invert the rotation. > > I'm not aware of a invert functionality on Quat but you could > create a rotation matrix from the Quat, invert that, and get > a quaternion back. >
All quaternions contains a vector ( x,y,z ) and a scalar (w ). For a rotation quaternion the vector is the axis multiplied by sin(a/2), where a is the angle of rotation. The scalar is cos(a/2). The reverse rotation is obtained by negating the vector part. For a Quat called rot like in your example, you can use the rot.conj() function to do this. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

