History

Merge pull request #10800 from hyperlogic/bug-fix/eyes-forward

Fix for eye direction when no look at targets are present.

Seth Alves committed 9 years ago

Commit 43ba5f32 parents f1fe4ed 8f89ef01 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -4190,7 +4190,7 @@ void Application::updateMyAvatarLookAtPosition() { · 4189 unmodified lines
41904190 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, TREE_SCALE));
41914191 } else {
41924192 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));
41944194 }
41954195 }
41964196