r3-custom-code/abw1ga2etc.js

26 lines
506 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;
var remainder = currentRotation % 0.4488;
console.log('offset:' + offset + ', remainder: ' + remainder);
this.animationSystem.start();
console.log('started');
//console.log(data);
//@ sourceURL=SpoonLibMouseUp.js