zhouenguang 3 år sedan
förälder
incheckning
6eac39ff3e
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 1
      modules/CharactorManager.js
  2. 2 1
      modules/index.js

+ 1 - 1
modules/CharactorManager.js

@@ -65,7 +65,7 @@ export default class CharactorManager {
                     video: [pointData.id],
                     reverse: this.app.camera.alpha - cameraAlphaAmend < 0
                 }
-                window.connection.socket.emit("getPush", sendData)
+                // window.connection.socket.emit("getPush", sendData)
 
                 // todo
                 this.app.rotateCamera(this.app.camera.alpha - cameraAlphaAmend, () => {

+ 2 - 1
modules/index.js

@@ -25,6 +25,7 @@ export default class App {
         camera1.angularSensibilityX /= 2;
         this.camera = camera1
         this.lastCameraAlpha = 0
+        this.cameraControlEnable = true
 
         // 人物相机射线
         this.ray = new BABYLON.Ray(new BABYLON.Vector3(0,0,0), new BABYLON.Vector3(0,0,1), 50);
@@ -210,7 +211,7 @@ export default class App {
                 video: [pointData.id],
                 reverse: dirc < 0
             }
-            window.connection.socket.emit("getPush", sendData)
+            // window.connection.socket.emit("getPush", sendData)
 
             this.rotateCamera(alphaOffset)
         }