3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-18 09:37:54 +02:00

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

Fix for eye direction when no look at targets are present.
This commit is contained in:
Seth Alves 2017-06-23 14:32:21 -07:00 committed by GitHub
commit 43ba5f3772

View file

@ -4190,7 +4190,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));
}
}