Hi,

I use arrow keys to move scene by my custom manipulator. I found a code as in 
the following but I cannot use my manipulator when using 
NodeTrackerManipulator. 

osgGA::NodeTrackerManipulator::TrackerMode trackerMode = 
osgGA::NodeTrackerManipulator::NODE_CENTER_AND_ROTATION;
osgGA::NodeTrackerManipulator::RotationMode rotationMode = 
osgGA::NodeTrackerManipulator::TRACKBALL;
osg::ref_ptr<osgGA::NodeTrackerManipulator> tm = new 
osgGA::NodeTrackerManipulator;
     tm->setTrackerMode(trackerMode);
     tm->setRotationMode(rotationMode);
     tm->setMinimumDistance(50.0);
     tm->setTrackNode(NodeToTrack);

     viewer->setCameraManipulator(tm.get());

Thank you!

Cheers,
Tufan

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





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

Reply via email to