Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -122,8 +122,7 @@ bool HMDScriptingInterface::getHUDLookAtPosition3D(glm::vec3& result) const { · 121 unmodified lines | ||
| 122 | 122 | |
| 123 | 123 | glm::mat4 HMDScriptingInterface::getWorldHMDMatrix() const { |
| 124 | 124 | auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar(); |
| 125 | − // return myAvatar->getSensorToWorldMatrix() * myAvatar->getHMDSensorMatrix(); | |
| 126 | − return myAvatar->getSensorToWorldMatrix() * myAvatar->getHeadControllerPoseInSensorFrame().getMatrix() * Matrices::Y_180; | |
| 125 | + return myAvatar->getSensorToWorldMatrix() * myAvatar->getHMDSensorMatrix(); | |
| 127 | 126 | } |
| 128 | 127 | |
| 129 | 128 | glm::vec3 HMDScriptingInterface::getPosition() const { |