Fix postPhysicsUpdate to properly transform follow displacement into sensor frame.
Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -151,7 +151,7 @@ glm::vec3 HMDScriptingInterface::getPosition() const { · 150 unmodified lines | |||
| 151 | 151 | ||
| 152 | glm::quat HMDScriptingInterface::getOrientation() const { | 152 | glm::quat HMDScriptingInterface::getOrientation() const { |
| 153 | if (qApp->getActiveDisplayPlugin()->isHmd()) { | 153 | if (qApp->getActiveDisplayPlugin()->isHmd()) { |
| 154 | return glm::normalize(glm::quat_cast(getWorldHMDMatrix())); | 154 | return glmExtractRotation(getWorldHMDMatrix()); |
| 155 | } | 155 | } |
| 156 | return glm::quat(); | 156 | return glm::quat(); |
| 157 | } | 157 | } |