<div dir="ltr"><div>Hi Max,</div><div><br></div><div>I'm afraid the original author of osgManipulator has moved company, where he developed it, over a decade ago so to know exactly how to use it we all just have to look at the code an figure it out.  I haven't personally use osgManipulator in the way you are wanting to use it so can't provide any guidance myself.<br></div><div><br></div><div>The only public example I'm familiar with is OpenSceneGraph/examples/osgmaipulator/osgmanipulator.cpp.</div><div><br></div><div>Cheers,<br></div><div>Robert.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 25 Oct 2018 at 15:50, Max Power <<a href="mailto:daniel.lehmann85@hotmail.com">daniel.lehmann85@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm quite new to OpenSceneGraph. I actually just finished to read the book "OpenSceneGraph 3.0 Beginner's Guide" and now I want to go a bit further.<br>
<br>
Currently, I try to move objects via the mouse. I already saw, that I can use the class osgManipulator::Dragger for this. Here I wrote my own CompositeDragger, which is basically a combination of a RotateCylinderDragger and a Translate1DDrager. This means I can move the object forwards and backwards and I can rotate it via mouse. I already got this working.<br>
<br>
However, I don't want to translate the object infinitely forwards or backwards. I just want to translate it e.g. 10 units back or 5 units forward at max. Or I want to translate it only within a certain area of the world coordinate system.<br>
<br>
How could I do this? I assume the osgManipulator::Contraint is helpful here. However, I haven't found any examples and I don't know how to apply it.<br>
<br>
I hope this wasn't asked before. At least I couldn't find anything similar. Are there any examples somewhere online, which you can recommend to look at?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Max<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=75125#75125" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=75125#75125</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>