Prechádzať zdrojové kódy

Update babylon.camera.ts

Fixing TypeScript error
The function is taken from the WebVR camera, but TypeScript takes "this" as the camera class.
Raanan Weber 8 rokov pred
rodič
commit
55e76b2d8a
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      src/Cameras/babylon.camera.ts

+ 4 - 1
src/Cameras/babylon.camera.ts

@@ -646,7 +646,10 @@
             this._cameraRigParams.vrWorkMatrix.multiplyToRef(this._cameraRigParams.vrHMatrix, this._projectionMatrix);
             return this._projectionMatrix;
         }
-
+        
+        protected _updateCameraRotationMatrix() {
+           // only here for webvr
+        }
         /**
          * This function MUST be overwritten by the different WebVR cameras available.
          * The context in which it is running is the RIG camera. So 'this' is the TargetCamera, left or right.