1
0
Fork 0

temporarily remove listener (viewer) and source offsets. they mess things up

This commit is contained in:
ehofman 2009-11-12 20:42:24 +00:00 committed by Tim Moore
parent 96b7939947
commit 0578b06a0c
2 changed files with 3 additions and 1 deletions

View 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(); }

View 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