[osg-users] Stop osgGA::TrackballManipulator spinning

Dani Cow erdani666 at gmail.com
Fri Apr 8 08:51:04 PDT 2011


I would say a way of doing this is to execute the init function:

/** Start/restart the manipulator.*/
void StandardManipulator::init( const GUIEventAdapter& ea, GUIActionAdapter& us )
{
    flushMouseEventStack();

    // stop animation
    _thrown = false;
    us.requestContinuousUpdate(false);
}

However, if you're thinking of adding more functionalities into your manipulator, I would recommend to inherit and add your own code.

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








More information about the osg-users mailing list