Function: addParticleComponent()
addParticleComponent(
world,entity,options?):ParticleEcsComponent
Defined in: particles/components/particle-component.ts:24
Attaches a ParticleEcsComponent to entity.
Parameters
world
The ECS world entity belongs to.
entity
number
The entity to attach the component to.
options?
Partial<ParticleEcsComponent> = {}
Options for configuring the particle.
Returns
The attached component, for further tuning or runtime changes.