|
@@ -32,7 +32,7 @@ export class MoveService implements OnModuleInit {
|
|
|
private cacheService: CacheService,
|
|
|
private rotateService: RotateService,
|
|
|
private configService: ConfigService,
|
|
|
- ) {}
|
|
|
+ ) { }
|
|
|
private logger: Logger = new Logger('MoveService');
|
|
|
private Actions = {
|
|
|
Clicking: 1,
|
|
@@ -130,8 +130,10 @@ export class MoveService implements OnModuleInit {
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
|
async onModuleInit() {
|
|
|
- const app_id = '0000000003';
|
|
|
- const prefix = '/mnt/metaverse/scene';
|
|
|
+ const app_id = this.configService.get('app.appId');
|
|
|
+ const prefix = this.configService.get('app.prefix');
|
|
|
+ console.log('app_id', app_id);
|
|
|
+ console.log('prefix', prefix);
|
|
|
let path;
|
|
|
// let path: string;
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
@@ -747,15 +749,15 @@ export class MoveService implements OnModuleInit {
|
|
|
// } else if (
|
|
|
console.log(
|
|
|
'joystick-breakPointId:' +
|
|
|
- _angle +
|
|
|
- ',' +
|
|
|
- neighPoints[0].angle +
|
|
|
- ',' +
|
|
|
- neighPoints[0].breakPointId +
|
|
|
- ',' +
|
|
|
- neighPoints[1].angle +
|
|
|
- ',' +
|
|
|
- neighPoints[1].breakPointId,
|
|
|
+ _angle +
|
|
|
+ ',' +
|
|
|
+ neighPoints[0].angle +
|
|
|
+ ',' +
|
|
|
+ neighPoints[0].breakPointId +
|
|
|
+ ',' +
|
|
|
+ neighPoints[1].angle +
|
|
|
+ ',' +
|
|
|
+ neighPoints[1].breakPointId,
|
|
|
);
|
|
|
let offsetAngle1 = Math.abs(_angle - neighPoints[0].angle);
|
|
|
if (neighPoints[0].angle == 0) {
|
|
@@ -968,7 +970,7 @@ export class MoveService implements OnModuleInit {
|
|
|
getDistance(position1, position2) {
|
|
|
return Math.sqrt(
|
|
|
(position1.x - position2.x) * (position1.x - position2.x) +
|
|
|
- (position1.y - position2.y) * (position1.y - position2.y),
|
|
|
+ (position1.y - position2.y) * (position1.y - position2.y),
|
|
|
);
|
|
|
}
|
|
|
|