Hi,

iam using the trunk of OSG 
I want to have a snap grid for the dragger.
I found the class GridConstraint 
can anybody tell me how it works? 


Code:

osg::Node *n= new osg::Node;
osgManipulator::GridConstraint *con = new osgManipulator::GridConstraint( *n , 
osg::Vec3(0,0,0), osg::Vec3(10,1,100 ) ) ;
osg::ref_ptr<osgManipulator::TabBoxDragger> m_pManipulator = new 
osgManipulator::TabBoxDragger; 
m_pManipulator->addConstraint( con);




There are no changes in dragger behavior 
Thank you!

Cheers,
Matthias

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to