Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 75 bytes modified
parent
6acf8414ea
commit
51efaf74b1
|
@ -19,19 +19,15 @@ var number = 0.897597901;
|
||||||
|
|
||||||
var remainder = currentRotation % number;
|
var remainder = currentRotation % number;
|
||||||
|
|
||||||
var result;
|
var result = number - remainder;
|
||||||
if (remainder < 0) {
|
|
||||||
result = number + remainder;
|
|
||||||
} else {
|
|
||||||
result = number - remainder;
|
|
||||||
}
|
|
||||||
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
|
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
|
||||||
|
|
||||||
//if (remainder < 0) {
|
if (currentRotation < 0) {
|
||||||
//this.cylinder.rotation.x -= result + 0.4488;
|
this.cylinder.rotation.x -= result + 0.4488;
|
||||||
//} else {
|
} else {
|
||||||
this.cylinder.rotation.x += result - 0.4488;
|
this.cylinder.rotation.x += result - 0.4488;
|
||||||
//}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue