r3-custom-code/abw1ga2etc.js

25 lines
422 B
JavaScript
Raw Normal View History

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