revert swapping of x & y offsets in "lookat" mode
This was correct in the old repository and in revision 1.1 of the new, but then broken in revision 1.2. After that, "lookat" and "lookfrom" mode used different coordinate systems, and the "Adjust View Distance" didn't work correctly in "lookat" mode.
This commit is contained in:
parent
5d8e5f29e0
commit
7810fbc632
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ FGViewer::recalcLookAt ()
|
|||
_roll_offset_deg);
|
||||
|
||||
// Offsets to the eye position
|
||||
SGVec3d eyeOff(-_offset_m.z(), _offset_m.y(), -_offset_m.x());
|
||||
SGVec3d eyeOff(-_offset_m.z(), _offset_m.x(), -_offset_m.y());
|
||||
SGQuatd ec2eye = geodEyeHlOr*geodEyeOr;
|
||||
SGVec3d eyeCart = SGVec3d::fromGeod(geodEyePos);
|
||||
eyeCart += (ec2eye*eyeOffsetOr).backTransform(eyeOff);
|
||||
|
|
Loading…
Add table
Reference in a new issue