fix missing viewPosition + offset

This commit is contained in:
humbletim 2017-07-03 12:03:46 -04:00
parent 026e05f80c
commit 9053531bda

View file

@ -1271,7 +1271,7 @@ void MyAvatar::updateLookAtTargetAvatar() {
glm::mat4 rightEye = qApp->getEyeOffset(Eye::Right);
glm::vec3 leftEyeHeadLocal = glm::vec3(leftEye[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);
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();