Represents an emitter that is responsible for spawning and updating particles.
Particles themselves are just data-holders, with the system acting upon them and modifying them. The modifications are done mainly via modules, that use the particle's data together with some function to apply temporal transitions.
• new Emitter(
Creates a new emitter, using default options.
The emission options of the emitter.
The main options of the emitter.
The particles currently contained within the system.
The renderer options of the emitter.
Checks if the emitter can safely be removed. This is true if no more particles are active.
Checks if the emitter is already expired and can be removed. Expired emitters do not emit new particles.
Clears all particles inside the emitter.
The number of cleared particles.
Processes a tick of the emitter, using the elapsed time.
This handles a few things, namely:
- Incrementing the duration timer and potentially incrementing the loop.
- Handling particle bursts & emissions.
- Despawning particles conditionally.
|The time, in seconds, passed since the last tick.|