Hi, here is one way without inheriting:

Code:

void M_OSG_viewer::Stop_spinning(void)
{
        osg::Quat rot(manipulator->getRotation());
        osg::Vec3d ctr(manipulator->getCenter());
        double dist(manipulator->getDistance());
        manipulator->home(0);
        manipulator->setDistance(dist);
        manipulator->setCenter(ctr);
        manipulator->setRotation(rot); // fairly long winded
}




Best,
Patrick

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





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

Reply via email to