improve belt rotation (still buggy)

This commit is contained in:
Stewart Allen 2020-12-07 21:38:39 -05:00
commit 43acc4e652
3 changed files with 20 additions and 8 deletions

View file

@ -27,8 +27,8 @@
rotate(set) {
this.view.rotation.x = -set.angle * (Math.PI/180);
this.view.position.y = -set.centerz + set.movez;
this.view.position.z = -set.movez/2;
this.view.position.y += -set.dy;
this.view.position.z += -set.dz;
}
destroy() {