ParticlesComp:

The particles component.

groupComponents

subgroupComponent Types

emitter:

position: Vec2

Relative position of the emitter

direction: number

Relative direction of the emitter

emit(n: number): void

Emit a number of particles

onEnd(cb: ()=>void): void

Called when the emitter expires