re-enable and update belt bed / slice rotation

This commit is contained in:
Stewart Allen 2020-12-04 19:44:31 -05:00
commit a0f08f0776
11 changed files with 63 additions and 41 deletions

View file

@ -25,6 +25,11 @@
this.view.visible = true;
}
rotate(set) {
this.view.rotation.y = -set.angle * (Math.PI/180);
this.view.position.x = +set.centerz - set.movez;
}
destroy() {
this._view.remove(this.view);
this.view = this.slices = this.meshes = null;