mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:17:24 +02:00
Minor adjustment to Oculus pick ray calc
This commit is contained in:
parent
02f9bb489f
commit
a9040c1a53
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ void ApplicationOverlay::computeOculusPickRay(float x, float y, glm::vec3& direc
|
||||||
float dist = sqrt(x * x + y * y);
|
float dist = sqrt(x * x + y * y);
|
||||||
float z = -sqrt(1.0f - dist * dist);
|
float z = -sqrt(1.0f - dist * dist);
|
||||||
|
|
||||||
glm::vec3 relativePosition = myAvatar->getHead()->getEyePosition() +
|
glm::vec3 relativePosition = myAvatar->getDefaultEyePosition() +
|
||||||
glm::normalize(myAvatar->getOrientation() * glm::vec3(x, y, z));
|
glm::normalize(myAvatar->getOrientation() * glm::vec3(x, y, z));
|
||||||
|
|
||||||
//Rotate the UI pick ray by the avatar orientation
|
//Rotate the UI pick ray by the avatar orientation
|
||||||
|
|
Loading…
Reference in a new issue