| Package | org.flintparticles.threeD.away3d |
| Class | public class Away3DRenderer |
| Inheritance | Away3DRenderer RendererBase |
To use this renderer, the particles' image properties should be Away3D objects, renderable in an Away3D scene. This renderer doesn't update the scene, but copies each particle's properties to its image object so next time the Away3D scene is rendered the image objects are drawn according to the state of the particle system.
| Method | Defined by | ||
|---|---|---|---|
|
Away3DRenderer(container:ObjectContainer3D)
The constructor creates an Away3D renderer for displaying the
particles in an Away3D scene.
| Away3DRenderer | ||
![]() |
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
This method is called when a particle is added to an emitter -
usually because the emitter has just created the particle.
| Away3DRenderer | ||
|
removeParticle(particle:Particle):void
This method is called when a particle is removed from an emitter -
usually because the particle is dying.
| Away3DRenderer | ||
|
renderParticles(particles:Array):void
This method copies the particle's state to the associated image object.
| Away3DRenderer | ||
| Away3DRenderer | () | constructor |
public function Away3DRenderer(container:ObjectContainer3D)The constructor creates an Away3D renderer for displaying the particles in an Away3D scene.
Parameterscontainer:ObjectContainer3D — An Away3D object container. The particle display
objects are created inside this object container. This is usually
a scene object, but it may be any ObjectContainer3D.
|
| addParticle | () | method |
protected override 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.
Parametersparticle:Particle — The particle being added to the emitter.
|
| removeParticle | () | method |
protected override 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.
Parametersparticle:Particle — The particle being removed from the emitter.
|
| renderParticles | () | method |
protected override 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.
Parametersparticles:Array — The particles to be rendered.
|