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
41634163 lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, -TREE_SCALE));
41644164 } else {
41654165 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));
41674167 }
41684168 }
41694169