burst
burst(
world,config):EntityId[]
Defined in: src/modules/particles/particles.ts:141
Spawn config.count particles in one shot and return their entity ids. Each
particle carries PositionDef, VelocityDef, LifetimeDef, RenderableDef
(rect), RenderOrderDef, ParticleDef, and ParticleTag — plus OpacityDef
/ ScaleDef / RotationDef when fadeOut / shrink / spin are set.
Schedule makeVelocityIntegrationSystem (motion), makeLifetimeSystem
(reaping), and — when any over-life option is used — makeParticleSystem.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”EntityId[]