Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 79 bytes modified
parent
02cff5278f
commit
6acf8414ea
|
@ -19,15 +19,19 @@ var number = 0.897597901;
|
||||||
|
|
||||||
var remainder = currentRotation % number;
|
var remainder = currentRotation % number;
|
||||||
|
|
||||||
var result = number - remainder;
|
var result;
|
||||||
|
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 (remainder < 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