From c5142e4e55e09c851599fad24aff0ba090ca49fc Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 14 Mar 2022 22:43:40 -0500 Subject: [PATCH] fix: revisit later --- packages/physics/src/traits/emitter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/physics/src/traits/emitter.js b/packages/physics/src/traits/emitter.js index c166278..2f6428c 100644 --- a/packages/physics/src/traits/emitter.js +++ b/packages/physics/src/traits/emitter.js @@ -141,7 +141,7 @@ export default (flecks) => class Emitter extends decorate(Trait) { this.#emitter.destroy(); return true; } - this.renderTick(elapsed); + this.tick(elapsed); return false; }; hooks.destroy = () => () => 0 === this.#streams.length; @@ -330,7 +330,7 @@ export default (flecks) => class Emitter extends decorate(Trait) { : []; } - renderTick(elapsed) { + tick(elapsed) { this.#emitter.update(elapsed); for (let i = 0; i < this.#emissions.length; i++) { this.#emissions[i].tick(elapsed);