|
@@ -135,7 +135,8 @@ export class MoveService implements OnModuleInit {
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
|
async onModuleInit() {
|
|
|
- const app_id = '0000000003';
|
|
|
+ //const app_id = '0000000003';
|
|
|
+ const app_id = '0000000007';
|
|
|
const prefix = '/mnt/metaverse/scene';
|
|
|
let path;
|
|
|
// let path: string;
|
|
@@ -1336,7 +1337,7 @@ export class MoveService implements OnModuleInit {
|
|
|
|
|
|
complementFrame(userId) {
|
|
|
if (this.cameraInfos.length > 0) {
|
|
|
- //console.log('handlejoysticktesttest:complementFrame-2 继续'+new Date().getTime())
|
|
|
+ //console.log('handlejoysticktesttest:complementFrame-1 继续'+new Date().getTime())
|
|
|
const user = this.users[userId];
|
|
|
const cameraInfo = this.cameraInfos.shift();
|
|
|
this.reply.traceIds = [];
|
|
@@ -1375,11 +1376,12 @@ export class MoveService implements OnModuleInit {
|
|
|
return this.reply;
|
|
|
}
|
|
|
else if (this.cameraInfos.length == 0){
|
|
|
- //console.log('handlejoysticktesttest:complementFrame-3 停止'+new Date().getTime())
|
|
|
if(this.reply['newUserStates'][0].renderInfo.isMoving == 1){
|
|
|
+ //console.log('handlejoysticktesttest:complementFrame-2 停止1'+new Date().getTime())
|
|
|
return this.stopJoystick(userId)
|
|
|
}
|
|
|
else{
|
|
|
+ //console.log('handlejoysticktesttest:complementFrame-2 停止2'+new Date().getTime())
|
|
|
return null;
|
|
|
}
|
|
|
}
|