ParticleSystem: {
    dispose: () => void;
    instance: THREE.Points | Gyroscope;
    pauseEmitter: () => void;
    resumeEmitter: () => void;
}

Represents a particle system instance, providing methods to control and manage its lifecycle.

Type declaration

  • dispose: () => void
  • instance: THREE.Points | Gyroscope
  • pauseEmitter: () => void
  • resumeEmitter: () => void
const particleSystem: ParticleSystem = {
instance: new THREE.Points(geometry, material),
resumeEmitter: () => { /* resume logic * / },
pauseEmitter: () => { /* pause logic * / },
dispose: () => { /* cleanup logic * / },
};

particleSystem.pauseEmitter(); // Stop particle emission
particleSystem.resumeEmitter(); // Resume particle emission
particleSystem.dispose(); // Cleanup the particle system