diff --git a/src/model/Model.ts b/src/model/Model.ts index ab405fdf..7b01fed2 100644 --- a/src/model/Model.ts +++ b/src/model/Model.ts @@ -58,15 +58,30 @@ export default class DIVEModel extends Object3D implements DIVESelectable, DIVEM public SetToWorldOrigin(): void { this.position.set(0, 0, 0); - DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { id: this.userData.id, position: this.position, rotation: this.rotation, scale: this.scale }); + DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { + id: this.userData.id, + position: this.position, + rotation: this.rotation, + scale: this.scale, + }); } public PlaceOnFloor(): void { this.position.y = -this.boundingBox.min.y * this.scale.y; - DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { id: this.userData.id, position: this.position, rotation: this.rotation, scale: this.scale }); + DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { + id: this.userData.id, + position: this.position, + rotation: this.rotation, + scale: this.scale, + }); } public onMove(): void { - DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { id: this.userData.id, position: this.position, rotation: this.rotation, scale: this.scale }); + DIVECommunication.get(this.userData.id)?.PerformAction('UPDATE_OBJECT', { + id: this.userData.id, + position: this.position, + rotation: this.rotation, + scale: this.scale, + }); } }