Skip to content

Commit

Permalink
Changed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrank913 committed Jun 17, 2024
1 parent fb1411a commit 0332c9e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/model/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
}

0 comments on commit 0332c9e

Please sign in to comment.