diff --git a/abw1ga2etc.js b/abw1ga2etc.js index a7112f8..54b5aaa 100644 --- a/abw1ga2etc.js +++ b/abw1ga2etc.js @@ -17,7 +17,9 @@ var currentRotation = this.cylinder.rotation.x; var remainder = currentRotation % 0.4488; -console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder); +var integer = Math.floor(currentRotation); + +console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer); if (remainder > (0.4488 / 2)) { this.cylinder.rotation.x += remainder;