diff --git a/abw1ga2etc.js b/abw1ga2etc.js index 9bb1947..a7112f8 100644 --- a/abw1ga2etc.js +++ b/abw1ga2etc.js @@ -15,10 +15,10 @@ this.animationSystem.start(); var currentRotation = this.cylinder.rotation.x; -console.log('current rotation: ' + currentRotation); - var remainder = currentRotation % 0.4488; +console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder); + if (remainder > (0.4488 / 2)) { this.cylinder.rotation.x += remainder; } else {