[osg-users] Question about osgManipulator::GridConstraint

Matthias Asselborn matthias.asselborn at gmx.de
Fri Nov 13 09:29:39 PST 2009


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







More information about the osg-users mailing list