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