I now wish to get the z rotation angle of the camera in degrees.

How do I do it?

ive got my :

Code:

osgGA::TrackballManipulator* man;
...



and if i go 

Code:

osg::Matrixd mat = man->getMatrix();
float angle = mat.getRotate().z();



but if i spin my camera doing a 360 the result is not in degrees.

What am I doing wrong?

Thanks.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43901#43901





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to