diff --git a/abw1ga2etc.js b/abw1ga2etc.js index 8d22d90..082ccef 100644 --- a/abw1ga2etc.js +++ b/abw1ga2etc.js @@ -6,9 +6,17 @@ 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');