Explorar el Código

Rotation quaternion must be initialized

In case the user hasn't done it himself.
Raanan Weber hace 9 años
padre
commit
bb7a5e875a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 {