mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Use calculated eye position here.
This commit is contained in:
parent
5f696bd72e
commit
4f3bacdd4c
1 changed files with 1 additions and 1 deletions
|
@ -1757,7 +1757,7 @@ Avatar* Application::findLookatTargetAvatar(const glm::vec3& mouseRayOrigin, con
|
|||
float distance;
|
||||
if (rayIntersectsSphere(mouseRayOrigin, mouseRayDirection, headPosition,
|
||||
HEAD_SPHERE_RADIUS * avatar->getHead().getScale(), distance)) {
|
||||
eyePosition = avatar->getHead().getEyePosition();
|
||||
eyePosition = avatar->getHead().calculateAverageEyePosition();
|
||||
_lookatIndicatorScale = avatar->getHead().getScale();
|
||||
_lookatOtherPosition = headPosition;
|
||||
nodeUUID = avatar->getOwningNode()->getUUID();
|
||||
|
|
Loading…
Reference in a new issue