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

beta.r3js.org
-=yb4f310 2018-01-16 14:53:37 +01:00
parent 6acf8414ea
commit 51efaf74b1
1 changed files with 6 additions and 10 deletions

View File

@ -19,19 +19,15 @@ var number = 0.897597901;
var remainder = currentRotation % number;
var result;
if (remainder < 0) {
result = number + remainder;
} else {
result = number - remainder;
}
var result = number - remainder;
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
//if (remainder < 0) {
//this.cylinder.rotation.x -= result + 0.4488;
//} else {
if (currentRotation < 0) {
this.cylinder.rotation.x -= result + 0.4488;
} else {
this.cylinder.rotation.x += result - 0.4488;
//}
}