Hi Michael, You will probably need to write your own dragger or modify RotateCyliderDragger to support the behavior you are after as an option.
Robert. On 6 November 2012 00:01, Michael Schanne <[email protected]> wrote: > Hi, > > In my application I am trying to create a box that the user can resize and > rotate. I have a CompositeDragger that works similar to the > TabPlaneDragger class (without the translation). I would like to use the > RotateCylinderDragger for the rotation but it doesn't do quite what I want. > I would like to have a handle sticking out from the cylinder that the user > could drag to rotate. To illustrate: > > .......o > .......| > []---[]---[] > |............| > |............| > []..........[] > |............| > |............| > []---[]---[] > > > In this illustation the [] symbols are the scale dragger handles and the o > is the rotation handle (the periods are just for spacing). I want to drag > on the o handle to rotate an invisible cylinder whose center is the center > of the box, and whose radius extends to the o handle. However the > RotateCylinderDragger rotates when dragging the side of the cylinder, not > the top. In other words, if my camera is directly over the end of the > cylinder (pointed toward the center of the circle) then dragging the > cylinder has no effect, which is not what I want. > > Is is possible to use RotateCylinderDragger to do what I described, or do > I need to write my own Dragger? > > ... > > Thank you! > > Cheers, > Michael[/code] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50986#50986 > > > > > > _______________________________________________ > 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

