Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -560,10 +560,9 @@ void Application::paintGL() { · 559 unmodified lines | ||
| 560 | 560 | _myCamera.setUpShift(0.0f); |
| 561 | 561 | _myCamera.setDistance(0.0f); |
| 562 | 562 | _myCamera.setTightness(0.0f); // Camera is directly connected to head without smoothing |
| 563 | − _myCamera.setTargetPosition(_myAvatar->getHead()->calculateAverageEyePosition()); | |
| 564 | − _myCamera.setTargetRotation(_myAvatar->getHead()->getCameraOrientation()); | |
| 565 | − | |
| 566 | − } else if (_myCamera.getMode() == CAMERA_MODE_FIRST_PERSON) { | |
| 563 | + } | |
| 564 | + | |
| 565 | + if (_myCamera.getMode() == CAMERA_MODE_FIRST_PERSON) { | |
| 567 | 566 | _myCamera.setTightness(0.0f); // In first person, camera follows (untweaked) head exactly without delay |
| 568 | 567 | _myCamera.setTargetPosition(_myAvatar->getHead()->calculateAverageEyePosition()); |
| 569 | 568 | _myCamera.setTargetRotation(_myAvatar->getHead()->getCameraOrientation()); |