Hi Mike,

You need just to set the "throw" flag of the trackball manipulator to false.
See setAllowThrow method.

Mourad

On Fri, Mar 19, 2010 at 8:24 PM, Mike Greene <mgre...@hiwaay.net> wrote:

> I have some source code where I use a trackballmanipulator to rotate a
> terrain. If I drag the mouse I can set the terrain spinning. How do I
> programatically stop this (i.e., without clicking the mouse again)? I tried
> setting Manipulator->setRotation(last_saved_angles), which does reset it ,
> but it looks like the previous dragging motion queues up lots of mouse
> events that then continue to rotate the terrain on subsequent render loops.
>
> Mike Greene
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to