API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceParticleWriter
A single freshly emitted particle, addressed by name. Every field starts at its default - zero position, velocity, rotation and rotation speed, unit scale, opaque white, frame 0, lifetime 1 - so a spawner writes only what it varies. The writer is a cursor onto the emitting system, not a particle object: it is reused by the next ParticleEmitter.emit call and must not be kept. Read what you need before emitting again.
import { ParticleWriter } from '@codexo/exojs-particles'A single freshly emitted particle, addressed by name.
Every field starts at its default - zero position, velocity, rotation and rotation speed, unit scale, opaque white, frame 0, lifetime 1 - so a spawner writes only what it varies.
The writer is a cursor onto the emitting system, not a particle object: it is reused by the next ParticleEmitter.emit call and must not be kept. Read what you need before emitting again.
color: numberframe: numberlifetime: numberrotation: numberrotationSpeed: number