Browse Source

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

Rotation quaternion must be initialized
David Catuhe 9 năm trước cách đây
mục cha
commit
10e68f6f5d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 {