25 lines
422 B
JavaScript
25 lines
422 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;
|
|
|
|
console.log(offset);
|
|
|
|
this.animationSystem.start();
|
|
|
|
console.log('started');
|
|
|
|
//console.log(data);
|
|
//@ sourceURL=SpoonLibMouseUp.js
|