Преглед изворни кода

Merge pull request #1158 from RaananW/fix-webvr-quaternion

Rotation quaternion must be initialized
David Catuhe пре 9 година
родитељ
комит
10e68f6f5d
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/Cameras/VR/babylon.webVRCamera.ts

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

@@ -16,6 +16,8 @@ module BABYLON {
             this.setCameraRigMode(Camera.RIG_MODE_VR, { vrCameraMetrics: metrics });
 
             this._getWebVRDevices = this._getWebVRDevices.bind(this);
+            
+            this.rotationQuaternion = new Quaternion();
         }
 
         private _getWebVRDevices(devices: Array<any>): void {