temporarily remove listener (viewer) and source offsets. they mess things up
This commit is contained in:
parent
96b7939947
commit
0578b06a0c
2 changed files with 3 additions and 1 deletions
|
@ -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(); }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue