]> git.mxchange.org Git - flightgear.git/commitdiff
temporarily remove listener (viewer) and source offsets. they mess things up
authorehofman <ehofman>
Thu, 12 Nov 2009 20:42:24 +0000 (20:42 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 12 Nov 2009 22:01:41 +0000 (23:01 +0100)
src/Main/viewer.hxx
src/Main/viewmgr.cxx

index aa5fb12125d0727e202be729b8cbbdf9df4cda9c..7005e661ff6b029f44e08a70b48855a058d4b872 100644 (file)
@@ -119,6 +119,7 @@ public:
     //   orientation rotations listed below.  This has the effect of the 
     //   eye moving around and "looking at" the object (model) from 
     //   different angles.
+    virtual SGVec3d getOffset_m () const { return _offset_m; }
     virtual double getXOffset_m () const { return _offset_m.x(); }
     virtual double getYOffset_m () const { return _offset_m.y(); }
     virtual double getZOffset_m () const { return _offset_m.z(); }
index dd1299be9f72e7d9f1999945ad44994517ea2570..a0494b080f3b03b9a825dd45da09c15390c82733 100644 (file)
@@ -338,7 +338,8 @@ FGViewMgr::update (double dt)
 
   // update audio listener values
   // set the viewer posotion in Cartesian coordinates in meters
-  smgr->set_position( abs_viewer_position );
+  smgr->set_position( SGVec3d::fromGeod(loop_view->getPosition()) );
+  smgr->set_position_offset( loop_view->getOffset_m() );
   smgr->set_orientation( current_view_orientation );
 
   // get the model velocity