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
4190 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, TREE_SCALE));4190 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, TREE_SCALE));
4191 } else {4191 } else {
4192 lookAtSpot = myAvatar->getHead()->getEyePosition() +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