Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2162,7 +2162,8 @@ void Application::update(float deltaTime) { · 2161 unmodified lines | |||
| 2162 | _myAvatar.getHead().setLookAtPosition(lookAtSpot); | 2162 | _myAvatar.getHead().setLookAtPosition(lookAtSpot); |
| 2163 | } else { | 2163 | } else { |
| 2164 | // Just look in direction of the mouse ray | 2164 | // Just look in direction of the mouse ray |
| 2165 | glm::vec3 myLookAtFromMouse(mouseRayOrigin + mouseRayDirection); | 2165 | const float FAR_AWAY_STARE = TREE_SCALE; |
| 2166 | glm::vec3 myLookAtFromMouse(mouseRayOrigin + mouseRayDirection * FAR_AWAY_STARE); | ||
| 2166 | _myAvatar.getHead().setLookAtPosition(myLookAtFromMouse); | 2167 | _myAvatar.getHead().setLookAtPosition(myLookAtFromMouse); |
| 2167 | } | 2168 | } |
| 2168 | 2169 | ||
| @@ -2855,8 +2856,9 @@ void Application::displaySide(Camera& whichCamera) { · 686 unmodified lines | |||
| 2855 | _myAvatar.getHead().setLookAtPosition(_myCamera.getPosition()); | 2856 | _myAvatar.getHead().setLookAtPosition(_myCamera.getPosition()); |
| 2856 | } | 2857 | } |
| 2857 | _myAvatar.render(_lookingInMirror->isChecked(), _renderAvatarBalls->isChecked()); | 2858 | _myAvatar.render(_lookingInMirror->isChecked(), _renderAvatarBalls->isChecked()); |
| 2859 | _myAvatar.setDisplayingLookatVectors(_renderLookatOn->isChecked()); | ||
| 2858 | 2860 | ||
| 2859 | if (_renderLookatIndicatorOn->isChecked() && _isLookingAtOtherAvatar) { | 2861 | if (_renderLookatIndicatorOn->isChecked()) { |
| 2860 | renderLookatIndicator(_lookatOtherPosition, whichCamera); | 2862 | renderLookatIndicator(_lookatOtherPosition, whichCamera); |
| 2861 | } | 2863 | } |
| 2862 | } | 2864 | } |