From 1791f7c6b951791da8b47968d88819924ae7109b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 22 Mar 2005 12:04:03 +0000 Subject: [PATCH] Corrected orientation of aeroplane and direction of rotation around earth. --- examples/osgsimulation/osgsimulation.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/osgsimulation/osgsimulation.cpp b/examples/osgsimulation/osgsimulation.cpp index 64e02a84c..d1d53e089 100644 --- a/examples/osgsimulation/osgsimulation.cpp +++ b/examples/osgsimulation/osgsimulation.cpp @@ -109,11 +109,13 @@ public: _latitude(0.0), _longitude(0.0), _height(100000.0) - {} - + { + _rotation.makeRotate(osg::DegreesToRadians(90.0),0.0,0.0,1.0); + } + void updateParameters() { - _latitude -= ((2.0*osg::PI)/360.0)/20.0; + _longitude += ((2.0*osg::PI)/360.0)/20.0; }