瀏覽代碼

fix deviceRotation

Trevor Baron 7 年之前
父節點
當前提交
6c355c3e7a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Cameras/VR/babylon.webVRCamera.ts

+ 1 - 1
src/Cameras/VR/babylon.webVRCamera.ts

@@ -324,7 +324,7 @@ module BABYLON {
             
             // Get current device rotation in babylon world
             Matrix.FromQuaternionToRef(this._deviceRoomRotationQuaternion, this._workingMatrix);
-            this._deviceToWorld.multiplyToRef(this._workingMatrix, this._workingMatrix);
+            this._workingMatrix.multiplyToRef(this._deviceToWorld, this._workingMatrix)
             Quaternion.FromRotationMatrixToRef(this._workingMatrix, this.deviceRotationQuaternion);
 
             super.update();