diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 5240594..019c5d2 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -3,12 +3,16 @@ if (!this.entityLoaded) { } if (!this.initialized) { - + + this.animationSystem = this.entityLoaded.animationSystem; this.cylinder = this.entityLoaded.cylinder; this.initialized = true; } +this.animationSystem.stop(); +this.animationSystem.start(); + if (data.event.deltaY > 0) { this.cylinder.rotation.x += 0.897597901; } else {