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

This commit is contained in:
Seth Alves 2017-06-08 10:28:38 -07:00 committed by Chris Collins
parent f7721b1ad0
commit 39fb94d76d

View file

@ -4131,7 +4131,7 @@ void Application::updateMyAvatarLookAtPosition() {
lookAtSpot = transformPoint(worldHeadMat, glm::vec3(0.0f, 0.0f, TREE_SCALE));
} else {
lookAtSpot = myAvatar->getHead()->getEyePosition() +
(myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, -TREE_SCALE));
(myAvatar->getHead()->getFinalOrientationInWorldFrame() * glm::vec3(0.0f, 0.0f, TREE_SCALE));
}
}