Updates to the terrain manipulator.

This commit is contained in:
Robert Osfield
2004-06-08 07:32:08 +00:00
parent eec378a885
commit 22ec86114d
2 changed files with 6 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ using namespace osgGA;
FlightManipulator::FlightManipulator()
{
_modelScale = 0.01f;
_acceleration = 100.0f;
_velocity = 0.0f;
_yawMode = YAW_AUTOMATICALLY_WHEN_BANKED;
@@ -237,7 +238,7 @@ bool FlightManipulator::calcMovement()
{
// pan model.
_velocity += dt*_modelScale*0.02f;
_velocity += dt*(_acceleration+_velocity);
}
else if (buttonMask==GUIEventAdapter::MIDDLE_MOUSE_BUTTON ||
@@ -250,7 +251,7 @@ bool FlightManipulator::calcMovement()
else if (buttonMask==GUIEventAdapter::RIGHT_MOUSE_BUTTON)
{
_velocity -= dt*_modelScale*0.02f;
_velocity -= dt*(_acceleration+_velocity);
}