API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSpawnOnDeath
Sub-emitter: triggers a child SpawnModule on a target system at the dying particle's position. Use for explosion-on-impact, sparks at end-of-life, multi-stage VFX. The child module receives a synthesized `dt` of 0 — it must spawn immediately rather than rely on rate accumulation. BurstSpawn works naturally; RateSpawn is the wrong fit here. Position is the only field forwarded — child distributions decide everything else. To keep child particles riding the parent's velocity, configure the child's velocity distribution to match.
import { SpawnOnDeath } from '@codexo/exojs-particles' Sub-emitter: triggers a child SpawnModule on a target system at the dying particle's position. Use for explosion-on-impact, sparks at end-of-life, multi-stage VFX.
The child module receives a synthesized `dt` of 0 — it must spawn immediately rather than rely on rate accumulation. BurstSpawn works naturally; RateSpawn is the wrong fit here.
Position is the only field forwarded — child distributions decide everything else. To keep child particles riding the parent's velocity, configure the child's velocity distribution to match.
new(targetSystem: ParticleSystem, spawner: SpawnModule, count: number): SpawnOnDeath destroy(): void onDeath(parent: ParticleSystem, slot: number): void count: number spawner: SpawnModule targetSystem: ParticleSystem