Hi Matthias, I'm afraid I don't understand, nor have personally tested this part of osgManipulator. What you are seeing could well be a bug. Unfortunately the original author of osgManipulator is no longer active on osg-users so probably isn't around to ask.
Could you recreate the problem with osgmanipulator example? Robert. On Tue, Nov 24, 2009 at 11:10 AM, Matthias Asselborn <[email protected]> wrote: > 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 > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

