Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 30 bytes modified
parent
cf95162762
commit
61126aa886
|
@ -15,10 +15,10 @@ this.animationSystem.start();
|
||||||
|
|
||||||
var currentRotation = this.cylinder.rotation.x;
|
var currentRotation = this.cylinder.rotation.x;
|
||||||
|
|
||||||
console.log('current rotation: ' + currentRotation);
|
|
||||||
|
|
||||||
var remainder = currentRotation % 0.4488;
|
var remainder = currentRotation % 0.4488;
|
||||||
|
|
||||||
|
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder);
|
||||||
|
|
||||||
if (remainder > (0.4488 / 2)) {
|
if (remainder > (0.4488 / 2)) {
|
||||||
this.cylinder.rotation.x += remainder;
|
this.cylinder.rotation.x += remainder;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue