[osg-users] Question about osgManipulator::GridConstraint
robert.osfield at gmail.com
Tue Nov 24 03:42:27 PST 2009
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?
On Tue, Nov 24, 2009 at 11:10 AM, Matthias Asselborn
<matthias.asselborn at gmx.de> wrote:
> 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?
> 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) *
> cmdMgr->connect(*dragger, *selection);
> cmdMgr->connect(*dragger, *con);
> Thank you!
> Read this topic online here:
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users