From 8f41f8a1499ad6a094c89c4541cb4af96bc84aa3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Dec 2003 16:50:26 +0000 Subject: [PATCH] Added environmental variable for setting the height of the drive manipulator. --- src/osgGA/DriveManipulator.cpp | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/osgGA/DriveManipulator.cpp b/src/osgGA/DriveManipulator.cpp index e300eba8e..8ca11097b 100644 --- a/src/osgGA/DriveManipulator.cpp +++ b/src/osgGA/DriveManipulator.cpp @@ -9,12 +9,25 @@ using namespace osg; using namespace osgGA; +#define DRIVER_HEIGHT 15 + +static float getHeightOfDriver() +{ + float height = 1.5f; + if (getenv("OSG_DRIVE_MANIPULATOR_HEIGHT")) + { + height = atof(getenv("OSG_DRIVE_MANIPULATOR_HEIGHT")); + } + osg::notify(osg::INFO)<<"DriveManipulator::_height set to =="<