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

beta.r3js.org
-=yb4f310 2018-01-16 14:22:03 +01:00
parent 51fdb7d2d9
commit 4bc6499f3a
1 changed files with 9 additions and 1 deletions

View File

@ -13,15 +13,23 @@ if (!this.initialized) {
var currentRotation = this.cylinder.rotation.x;
this.animationSystem.start();
var offset = currentRotation / 0.4488;
var integer = Math.floor(offset);
var remainder = offset - integer;
if (remainder > 0.5) {
this.cylinder.rotation.x = (integer + 1) * 0.4488;
} else {
this.cylinder.rotation.x = (integer) * 0.4488;
}
console.log('offset:' + offset + ', remainder: ' + remainder);
this.animationSystem.start();
console.log('started');