Hi Vincent,

I implement a new manipulator, with a way to set a node as reference.
The expected effect is that the camera will stay motionless relative to the node (translation and rotation)

In other words, it will follow the node? You could try osgGA::NodeTrackerManipulator...

    osg::ref_ptr<osgGA::NodeTrackerManipulator> manipulator =
        new osgGA::NodeTrackerManipulator;
    manipulator->setTrackerMode(NODE_CENTER_AND_ROTATION);
    manipulator->setTrackNode(node);

Then you can use setHomePosition() to change the offset to the node.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to