Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 5 bytes modified

beta.r3js.org
-=yb4f310 2018-01-16 14:55:50 +01:00
parent 6156d54583
commit b2debb2276
1 changed files with 5 additions and 5 deletions

View File

@ -11,6 +11,10 @@ if (!this.initialized) {
this.initialized = true;
}
while (this.cylinder.rotation.x < 0) {
this.cylinder.rotation.x += Math.PI;
}
this.animationSystem.start();
var currentRotation = this.cylinder.rotation.x;
@ -23,11 +27,7 @@ var result = number - remainder;
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
if (currentRotation < 0) {
this.cylinder.rotation.x += result - 0.4488;
} else {
this.cylinder.rotation.x += result - 0.4488;
}
this.cylinder.rotation.x += result - 0.4488;