Packageorg.flintparticles.threeD.particles
Classpublic class ParticleCreator3D
InheritanceParticleCreator3D Inheritance Object
Implements ParticleFactory

The ParticleCreator is used by the Emitter class to manage the creation and reuse of particles. To speed up the particle system, the ParticleCreator class maintains a pool of dead particles and reuses them when a new particle is needed, rather than creating a whole new particle.



Public Methods
 MethodDefined By
  
The constructor creates a ParticleCreator object.
ParticleCreator3D
  
Empties the particle pool.
ParticleCreator3D
  
Obtains a new Particle object.
ParticleCreator3D
  
disposeParticle(particle:Particle):void
Returns a particle to the particle pool for reuse
ParticleCreator3D
Constructor Detail
ParticleCreator3D()Constructor
public function ParticleCreator3D()

The constructor creates a ParticleCreator object.

Method Detail
clearAllParticles()method
public function clearAllParticles():void

Empties the particle pool.

createParticle()method 
public function createParticle():Particle

Obtains a new Particle object. The createParticle method will return a dead particle from the poll of dead particles or create a new particle if none are available.

Returns
Particle — a Particle object.
disposeParticle()method 
public function disposeParticle(particle:Particle):void

Returns a particle to the particle pool for reuse

Parameters

particle:Particle — The particle to return for reuse.