Hi,
I've noticed that osgGA::OrbitManipulator code for right and middle mouse
movement has hard-coded values such as:
Code:
// doc in parent
bool OrbitManipulator::performMovementMiddleMouseButton( const double
eventTimeDelta, const double dx, const double dy )
{
// pan model
float scale = -0.3f * _distance * getThrowScale( eventTimeDelta );
panModel( dx*scale, dy*scale );
return true;
}
see zoomModel() and performMovementRightMouseButton() for the rest.
Is there particular reason scale is hard-coded and no parameter is exposed to
be able to modify movement scale for middle and right mouse button? Or is there
some other way to do it?
Thank you!
Janna
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50766#50766
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org