From 205a6a105ec4c9e82361bfa67d4c7dc19542178a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 26 May 2004 00:26:43 +0000 Subject: [PATCH] Made the drive and flight manipulators more sensitive to de/acceleration --- src/osgGA/DriveManipulator.cpp | 4 ++-- src/osgGA/FlightManipulator.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgGA/DriveManipulator.cpp b/src/osgGA/DriveManipulator.cpp index ebe1659c1..c972add7e 100644 --- a/src/osgGA/DriveManipulator.cpp +++ b/src/osgGA/DriveManipulator.cpp @@ -434,7 +434,7 @@ bool DriveManipulator::calcMovement() { // pan model. - _velocity += dt*_modelScale*0.02; + _velocity += dt*_modelScale*0.01; } else if (buttonMask==GUIEventAdapter::MIDDLE_MOUSE_BUTTON || @@ -447,7 +447,7 @@ bool DriveManipulator::calcMovement() else if (buttonMask==GUIEventAdapter::RIGHT_MOUSE_BUTTON) { - _velocity -= dt*_modelScale*0.02; + _velocity -= dt*_modelScale*0.01; } break; diff --git a/src/osgGA/FlightManipulator.cpp b/src/osgGA/FlightManipulator.cpp index 1a702025b..d76d917ae 100644 --- a/src/osgGA/FlightManipulator.cpp +++ b/src/osgGA/FlightManipulator.cpp @@ -237,7 +237,7 @@ bool FlightManipulator::calcMovement() { // pan model. - _velocity += dt*_modelScale*0.05f; + _velocity += dt*_modelScale*0.02f; } else if (buttonMask==GUIEventAdapter::MIDDLE_MOUSE_BUTTON || @@ -250,7 +250,7 @@ bool FlightManipulator::calcMovement() else if (buttonMask==GUIEventAdapter::RIGHT_MOUSE_BUTTON) { - _velocity -= dt*_modelScale*0.05f; + _velocity -= dt*_modelScale*0.02f; }