new ParticleEmitter(pos, num, createrFunc) → {ParticleEmitter}
Default Constructor
Parameters:
Name | Type | Description |
---|---|---|
pos |
vec2 | Position of Emitter |
num |
Number | Number of particles to be emitted |
createrFunc |
function | Creater Function |
- Source:
Returns:
New instance of ParticleEmitter
- Type
- ParticleEmitter
Methods
emitParticles(pSet)
Emits particles and adds them to the particle set being passed
Parameters:
Name | Type | Description |
---|---|---|
pSet |
ParticleGameObjectSet | The ParticleGameObjectSet to add the particles to |
- Source:
expired() → {Boolean}
Checks to see if the emitter has spawnned all of the
- Source:
Returns:
Whether all the particles has ben emitted
- Type
- Boolean