mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:13:32 +02:00
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:
parent
f7721b1ad0
commit
39fb94d76d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue