Hi

I'm trying to implement a rotation of my object using Euler angles,
phi,theta and epsi.

I have implemented this line of code:
osg::Quat OSGQuat = osg::Quat (phi,osg::Vec3d(1,0,0),
theta,osg::Vec3d(0,1,0), epsi,osg::Vec3d(0,0,1));

{sorry about the formating}

Where 
phi is a rotation about the x-axis
theta is a rotation about the y-axis
and z is a rotation about the z-axis

However when I check the code for phi = pi,theta = 0 and epsi = 0
instead of getting the Quat matrix (1,0,0,0). I get some arbitary Quat
vector not even close.

I'm not sure if I'm using the Quat class incorrectly or its something
else.

Thanks
Tristan

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to