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 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;
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue