Class
Particle
View sourceMarks an entity as a particle.
Particle is an empty marker component with no fields or constructor
options. Pair it with a Timer when representing a particle with a
lifetime; the emitter integration uses the marker and timer to identify
particles whose lifetime has completed.
There is no state to copy: copy(source, target) returns the supplied
target unchanged, while clone(source) creates another empty marker.
Examples
import { World } from '@wimaengine/ecs'
import { Particle } from '@wimaengine/emitter'
const world = new World()
const particle = world.spawn([new Particle()])Constructor
Methods
staticcopy(source: Particle, target?: Particle): Particle
View sourceReturns a marker target without copying any state.
staticclone(target: Particle): Particle
View sourceCreates an empty marker because there is no state to clone.
