gemercheung 3 лет назад
Родитель
Сommit
b65e119934
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/scene/scene.service.ts

+ 3 - 1
src/scene/scene.service.ts

@@ -415,6 +415,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
     try {
       // if (!this.onMoving.getValue()) {
       const start = performance.now();
+      this._rotateCount = 0;
       const user = this.moveService.users[this.user_id];
       this.logger.log('进入1 - searchRoad');
       this.logger.log('path-start' + user.breakPointId);
@@ -530,10 +531,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
   async handlejoystick(request: JoystickRequest) {
     try {
       //const joystickRes = await this.moveService.joystick(request);
+      this._rotateCount = 0;
       const joystickRes = await this.moveService.seqExeJoystick(request);
       this.logger.log(
         'joystick-breakPointId:' +
-        this.moveService.users[this.user_id].breakPointId,
+          this.moveService.users[this.user_id].breakPointId,
       );
       // 有数据 [0]是rotate数据,[1-infinity]是walking数据
       this.logger.log('joystickRes-1', joystickRes);