zhouenguang před 3 roky
rodič
revize
5845f42179
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/XCameraComponent.js

+ 4 - 4
src/XCameraComponent.js

@@ -11,19 +11,19 @@ export default class XCameraComponent {
         E(this, "forceKeepVertical", !1);
         E(this, "initCamera", e=>{
             const {maxZ: t=1e4, minZ: r=.1, angularSensibility: n=2e3} = e;
-            this.mainCamera = new BABYLON.FreeCamera("camera_main",new BABYLON.Vector3(0,1e3,0),this.scene),
+            this.mainCamera = new BABYLON.FreeCamera("camera_main",new BABYLON.Vector3(0,0,1),this.scene),
             this.mainCamera.mode = BABYLON.Camera.PERSPECTIVE_CAMERA,
             this.mainCamera.speed = .1,
             this.mainCamera.angularSensibility = n,
-            this.mainCamera.setTarget(new BABYLON.Vector3(0,1010,0)),
+            this.mainCamera.setTarget(new BABYLON.Vector3(0,0,0)),
             this.mainCamera.minZ = r,
             this.mainCamera.fov = Math.PI * this.yuvInfo.fov / 180,
             this.mainCamera.maxZ = t,
             this.mainCamera.fovMode = BABYLON.Camera.FOVMODE_HORIZONTAL_FIXED,
-            this.cgCamera = new BABYLON.FreeCamera("camera_temp",new BABYLON.Vector3(0,1e3,0),this.scene),
+            this.cgCamera = new BABYLON.FreeCamera("camera_temp",new BABYLON.Vector3(0,0,1),this.scene),
             this.cgCamera.mode = BABYLON.Camera.PERSPECTIVE_CAMERA,
             this.cgCamera.speed = .1,
-            this.cgCamera.setTarget(new BABYLON.Vector3(0,1010,0)),
+            this.cgCamera.setTarget(new BABYLON.Vector3(0,0,0)),
             this.cgCamera.maxZ = t,
             this.cgCamera.minZ = r,
             this.cgCamera.fovMode = BABYLON.Camera.FOVMODE_HORIZONTAL_FIXED,