From 0578b06a0c58f7c206ec23819a1d3b9f97ae960b Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 12 Nov 2009 20:42:24 +0000 Subject: [PATCH] temporarily remove listener (viewer) and source offsets. they mess things up --- src/Main/viewer.hxx | 1 + src/Main/viewmgr.cxx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main/viewer.hxx b/src/Main/viewer.hxx index aa5fb1212..7005e661f 100644 --- a/src/Main/viewer.hxx +++ b/src/Main/viewer.hxx @@ -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(); } diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index dd1299be9..a0494b080 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -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