| Package | org.flintparticles.threeD.papervision3d |
| Class | public class PV3DParticleRenderer |
| Inheritance | PV3DParticleRenderer RendererBase Object |
To use this renderer, the particles' image properties should be Papervision3D particles, renderable in a Papervision3D Particles object. This renderer doesn't update the scene, but copies each particle's properties to its image object so next time the Papervision3D scene is rendered the image objects are drawn according to the state of the particle system.
| Method | Defined By | ||
|---|---|---|---|
PV3DParticleRenderer(container:Particles)
The constructor creates an Papervision3D particle renderer for displaying the
particles in a Papervision3D Particles object. | PV3DParticleRenderer | ||
![]() | addEmitter(emitter:Emitter):void
Adds the emitter to the renderer. | RendererBase | |
![]() | removeEmitter(emitter:Emitter):void
Removes the emitter from the renderer. | RendererBase | |
| Method | Defined By | ||
|---|---|---|---|
addParticle(particle:Particle):void [override]
This method is called when a particle is added to an emitter -
usually because the emitter has just created the particle. | PV3DParticleRenderer | ||
removeParticle(particle:Particle):void [override]
This method is called when a particle is removed from an emitter -
usually because the particle is dying. | PV3DParticleRenderer | ||
renderParticle(particle:Particle3D):void | PV3DParticleRenderer | ||
renderParticles(particles:Array):void [override]
This method copies the particle's state to the associated image object. | PV3DParticleRenderer | ||
| PV3DParticleRenderer | () | Constructor |
public function PV3DParticleRenderer(container:Particles)The constructor creates an Papervision3D particle renderer for displaying the particles in a Papervision3D Particles object.
Parameterscontainer:Particles — A Papervision3D Particles object. The particle display
objects are created inside this Particles object.
|
| addParticle | () | method |
override protected function addParticle(particle:Particle):voidThis method is called when a particle is added to an emitter - usually because the emitter has just created the particle. The method adds the particle's image to the container's display list. It is called internally by Flint and need not be called by the user.
Parameters
particle:Particle — The particle being added to the emitter.
|
| removeParticle | () | method |
override protected function removeParticle(particle:Particle):voidThis method is called when a particle is removed from an emitter - usually because the particle is dying. The method removes the particle's image from the container's display list. It is called internally by Flint and need not be called by the user.
Parameters
particle:Particle — The particle being removed from the emitter.
|
| renderParticle | () | method |
| renderParticles | () | method |
override protected function renderParticles(particles:Array):voidThis method copies the particle's state to the associated image object.
This method is called internally by Flint and shouldn't need to be called by the user.
Parameters
particles:Array — The particles to be rendered.
|