Fix for eye direction when no look at targets are present.
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -4190,7 +4190,7 @@ void Application::updateMyAvatarLookAtPosition() { · 4189 unmodified lines | ||
| 4190 | 4190 | lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, TREE_SCALE)); |
| 4191 | 4191 | } else { |
| 4192 | 4192 | lookAtSpot = myAvatar->getHead()->getEyePosition() + |
| 4193 | − (myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, TREE_SCALE)); | |
| 4193 | + (myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, -TREE_SCALE)); | |
| 4194 | 4194 | } |
| 4195 | 4195 | } |
| 4196 | 4196 | |