Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 70 bytes modified

beta.r3js.org
-=yb4f310 2018-01-16 14:35:48 +01:00
parent 61126aa886
commit 67ef60a4d7
1 changed files with 3 additions and 1 deletions

View File

@ -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;