mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:53:10 +02:00
fix missing viewPosition + offset
This commit is contained in:
parent
026e05f80c
commit
9053531bda
1 changed files with 1 additions and 1 deletions
|
@ -1271,7 +1271,7 @@ void MyAvatar::updateLookAtTargetAvatar() {
|
||||||
glm::mat4 rightEye = qApp->getEyeOffset(Eye::Right);
|
glm::mat4 rightEye = qApp->getEyeOffset(Eye::Right);
|
||||||
glm::vec3 leftEyeHeadLocal = glm::vec3(leftEye[3]);
|
glm::vec3 leftEyeHeadLocal = glm::vec3(leftEye[3]);
|
||||||
glm::vec3 rightEyeHeadLocal = glm::vec3(rightEye[3]);
|
glm::vec3 rightEyeHeadLocal = glm::vec3(rightEye[3]);
|
||||||
glm::vec3 humanLeftEye = + (viewOrientation * leftEyeHeadLocal);
|
glm::vec3 humanLeftEye = viewPosition + (viewOrientation * leftEyeHeadLocal);
|
||||||
glm::vec3 humanRightEye = viewPosition + (viewOrientation * rightEyeHeadLocal);
|
glm::vec3 humanRightEye = viewPosition + (viewOrientation * rightEyeHeadLocal);
|
||||||
|
|
||||||
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();
|
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();
|
||||||
|
|
Loading…
Reference in a new issue