|
@@ -1090,7 +1090,6 @@ export class MoveService implements OnModuleInit {
|
|
|
actionType,
|
|
|
);
|
|
|
} else {
|
|
|
- user.player.position = JSON.parse(JSON.stringify(playerPosition));
|
|
|
this.reply['newUserStates'][0].playerState.player.position = JSON.parse(
|
|
|
JSON.stringify(user.player.position),
|
|
|
);
|
|
@@ -1106,8 +1105,8 @@ export class MoveService implements OnModuleInit {
|
|
|
if (cameraInfo.mediaSrc) {
|
|
|
this.reply.mediaSrc = cameraInfo.mediaSrc;
|
|
|
this.reply.joystickIDR = cameraInfo.joystickIDR;
|
|
|
- console.log('handlejoysticktesttest:mediaSrc:'+cameraInfo.mediaSrc);
|
|
|
}
|
|
|
+ console.log('handlejoysticktesttest:mediaSrc:'+cameraInfo.mediaSrc);
|
|
|
|
|
|
user.camera.position = JSON.parse(
|
|
|
JSON.stringify(cameraInfo.camera_position),
|
|
@@ -1119,7 +1118,7 @@ export class MoveService implements OnModuleInit {
|
|
|
} else {
|
|
|
console.log('joystick自由--->不合并');
|
|
|
}
|
|
|
- console.log('handlejoysticktesttest:actionRequest-自由'+new Date().getTime());
|
|
|
+ console.log('handlejoysticktesttest:actionRequest-自由'+JSON.stringify(user.player.position));
|
|
|
return this.reply;
|
|
|
}
|
|
|
}
|
|
@@ -1206,10 +1205,10 @@ export class MoveService implements OnModuleInit {
|
|
|
actionType,
|
|
|
) {
|
|
|
const user = this.users[userId];
|
|
|
+ this.reply['newUserStates'][0].playerState.player.position = JSON.parse(
|
|
|
+ JSON.stringify(user.player.position),
|
|
|
+ );
|
|
|
if (chooseBreakPointId == null) {
|
|
|
- this.reply['newUserStates'][0].playerState.player.position = JSON.parse(
|
|
|
- JSON.stringify(user.player.position),
|
|
|
- );
|
|
|
this.reply.actionResponses[0].actionType = actionType;
|
|
|
return this.reply;
|
|
|
}
|
|
@@ -1217,9 +1216,6 @@ export class MoveService implements OnModuleInit {
|
|
|
//相机纠正加过渡
|
|
|
else {
|
|
|
if (chooseBreakPointId == user.breakPointId) {
|
|
|
- this.reply['newUserStates'][0].playerState.player.position = JSON.parse(
|
|
|
- JSON.stringify(user.player.position),
|
|
|
- );
|
|
|
return this.reply;
|
|
|
}
|
|
|
|
|
@@ -1291,7 +1287,7 @@ export class MoveService implements OnModuleInit {
|
|
|
}
|
|
|
this.sendingFrameForJoystick = true;
|
|
|
}
|
|
|
- console.log('handlejoysticktesttest:actionRequest-镜头过渡:'+breakPointId+'到'+chooseBreakPointId+'。'+new Date().getTime());
|
|
|
+ console.log('handlejoysticktesttest:actionRequest-镜头过渡:'+breakPointId+'到'+chooseBreakPointId+'。'+ JSON.stringify(user.player.position));
|
|
|
return this.reply;
|
|
|
}
|
|
|
}
|