History

fix bug that causes hmd avatar eyes to be all the way to the side when there's not another avatar to look at

Seth Alves committed 9 years ago

Commit 3b471421 parent 5352e853 files · +4 −5Browse files

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

Unified · Split

interface/src/Application.cpp+1−1
@@ -4163,7 +4163,7 @@ void Application::updateMyAvatarLookAtPosition() { · 4162 unmodified lines
4163 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, -TREE_SCALE));4163 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, -TREE_SCALE));
4164 } else {4164 } else {
4165 lookAtSpot = myAvatar->getHead()->getEyePosition() +4165 lookAtSpot = myAvatar->getHead()->getEyePosition() +
4166 (myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, -TREE_SCALE));4166 (myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, TREE_SCALE));
4167 }4167 }
4168 }4168 }
4169 4169