Update: CC - SpoonLib - Mouse Up (abw1ga2etc.js) 137 bytes modified
parent
51fdb7d2d9
commit
4bc6499f3a
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue