Browse Source

Rotation quaternion must be initialized

In case the user hasn't done it himself.
Raanan Weber 9 years ago
parent
commit
bb7a5e875a
1 changed files with 2 additions and 0 deletions
  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 {