Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 96 bytes modified
parent
0ca2a9f9c0
commit
5050e1f1d3
|
@ -23,11 +23,7 @@ var result = 0.4488 - remainder;
|
||||||
|
|
||||||
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer + ' result: ' + result);
|
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer + ' result: ' + result);
|
||||||
|
|
||||||
if (remainder > (0.4488 / 2)) {
|
this.cylinder.rotation.x += result;
|
||||||
this.cylinder.rotation.x += remainder;
|
|
||||||
} else {
|
|
||||||
this.cylinder.rotation.x -= 0.4488 - remainder;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue