26 lines
506 B
JavaScript
26 lines
506 B
JavaScript
if (!this.entityLoaded) {
|
|
return;
|
|
}
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.animationSystem = this.entityLoaded.animationSystem;
|
|
|
|
this.cylinder = this.entityLoaded.cylinder;
|
|
|
|
this.initialized = true;
|
|
}
|
|
|
|
var currentRotation = this.cylinder.rotation.x;
|
|
|
|
var offset = currentRotation / 0.4488;
|
|
var remainder = currentRotation % 0.4488;
|
|
|
|
console.log('offset:' + offset + ', remainder: ' + remainder);
|
|
|
|
this.animationSystem.start();
|
|
|
|
console.log('started');
|
|
|
|
//console.log(data);
|
|
//@ sourceURL=SpoonLibMouseUp.js
|