浏览代码

Now using the right method.

Raanan Weber 8 年之前
父节点
当前提交
a8686e5c37
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Cameras/VR/babylon.webVRCamera.ts

+ 4 - 0
src/Cameras/VR/babylon.webVRCamera.ts

@@ -248,6 +248,10 @@ module BABYLON {
             return this._webvrViewMatrix;
         }
 
+        protected _updateCameraRotationMatrix() {
+            this._webvrViewMatrix.getRotationMatrixToRef(this._cameraRotationMatrix);
+        }
+
         public _isSynchronizedViewMatrix() {
             return false;
         }