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