A scheduled burst of particles, listed in ParticleSystem3DOptions.bursts
const fireworks = new ParticleSystem3D({ emitRate: 0, bursts: [{ time: 0, count: 200, repeatEvery: 1.5 }],}); Copy
const fireworks = new ParticleSystem3D({ emitRate: 0, bursts: [{ time: 0, count: 200, repeatEvery: 1.5 }],});
How many particles it emits each time it fires
const pulse: ParticleBurst = { time: 0, count: 20, repeatEvery: 0.5 };const fountain = new ParticleSystem3D({ emitRate: 0, bursts: [pulse] });pulse.count = 40; Copy
const pulse: ParticleBurst = { time: 0, count: 20, repeatEvery: 0.5 };const fountain = new ParticleSystem3D({ emitRate: 0, bursts: [pulse] });pulse.count = 40;
Optional
Repeat interval in seconds. Omit for a one-shot
const heartbeat: ParticleBurst = { time: 0, count: 12, repeatEvery: 0.8 }; Copy
const heartbeat: ParticleBurst = { time: 0, count: 12, repeatEvery: 0.8 };
Seconds into the system's burst timeline when the burst fires
const finale: ParticleBurst = { time: 2, count: 300 }; Copy
const finale: ParticleBurst = { time: 2, count: 300 };
A scheduled burst of particles, listed in ParticleSystem3DOptions.bursts
Example