Hi,
now i tested it with the old command manager
but it didnt work
is there a bug in GridConstraint?
I need a snapping to given points
Can anybody help me?
Code:
osgManipulator::GridConstraint *con = new osgManipulator::GridConstraint( *root
, osg::Vec3(0,0,0), osg::Vec3(1.1,1.1,1.1 ) ) ;
float scale = scene->getBound().radius() * 1.6;
dragger->setMatrix(osg::Matrix::scale(scale, scale, scale) *
osg::Matrix::translate(scene->getBound().center()));
cmdMgr->connect(*dragger, *selection);
cmdMgr->connect(*dragger, *con);
Thank you!
Cheers,
Matthias
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20209#20209
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org