Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 5 bytes modified
parent
6156d54583
commit
b2debb2276
|
@ -11,6 +11,10 @@ if (!this.initialized) {
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (this.cylinder.rotation.x < 0) {
|
||||||
|
this.cylinder.rotation.x += Math.PI;
|
||||||
|
}
|
||||||
|
|
||||||
this.animationSystem.start();
|
this.animationSystem.start();
|
||||||
|
|
||||||
var currentRotation = this.cylinder.rotation.x;
|
var currentRotation = this.cylinder.rotation.x;
|
||||||
|
@ -23,11 +27,7 @@ var result = number - remainder;
|
||||||
|
|
||||||
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
|
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' result: ' + result);
|
||||||
|
|
||||||
if (currentRotation < 0) {
|
|
||||||
this.cylinder.rotation.x += result - 0.4488;
|
this.cylinder.rotation.x += result - 0.4488;
|
||||||
} else {
|
|
||||||
this.cylinder.rotation.x += result - 0.4488;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue