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

beta.r3js.org
-=yb4f310 2018-01-16 14:49:13 +01:00
parent d4154a4f8d
commit 56430d270b
1 changed files with 5 additions and 4 deletions

View File

@ -19,14 +19,15 @@ var number = 0.897597901;
var remainder = currentRotation % number;
var integer = Math.floor(currentRotation);
var result = number - remainder;
console.log('current rotation: ' + currentRotation + ' remainder : ' + remainder + ' integer : ' + integer + ' result: ' + result);
this.cylinder.rotation.x += result - 0.4488;
if (remainder < 0) {
this.cylinder.rotation.x -= result - 0.4488
} else {
this.cylinder.rotation.x += result - 0.4488;
}