| Package | org.flintparticles.threeD.emitters |
| Class | public class Emitter3D |
| Inheritance | Emitter3D Emitter flash.events.EventDispatcher |
| Subclasses | Emitter3D |
This emitter is not constrained to any particular 3D rendering environment. The emitter manages the creation and updating of each particle's state but does not do any rendering of the particles. The rendering is handled by a renderer. Renderer's could be created for drawing an emitter's particles on any 3D drawing environment.
This emitter adds 3D specific features to the base emitter class.
| Property | Defined By | ||
|---|---|---|---|
![]() | actions : Vector.<Action>
The array of all actions being used by this emitter. | Emitter | |
![]() | activities : Vector.<Activity>
The array of all actions being used by this emitter. | Emitter | |
![]() | counter : Counter
The Counter for the Emitter. | Emitter | |
| defaultParticleFactory : ParticleFactory [static] [read-only]
The default particle factory used to manage the creation, reuse and destruction of particles. | Emitter3D | ||
![]() | fixedFrameTime : Number
Indicates a fixed time (in seconds) to use for every frame. | Emitter | |
![]() | initializers : Vector.<Initializer>
The array of all initializers being used by this emitter. | Emitter | |
![]() | maximumFrameTime : Number
The maximum duration for a single update frame, in seconds. | Emitter | |
![]() | particleFactory : ParticleFactory
This is the particle factory used by the emitter to create and dispose
of particles. | Emitter | |
![]() | particles : Vector.<Particle>
The collection of all particles being managed by this emitter. | Emitter | |
![]() | particlesArray : Array [read-only]
The actual array of particles used internally by this emitter. | Emitter | |
| position : Vector3D
Indicates the position of the Emitter instance relative to
the local coordinate system of the Renderer. | Emitter3D | ||
| rotation : Quaternion
Indicates the rotation of the Emitter instance relative to
the local coordinate system of the Renderer. | Emitter3D | ||
| rotationTransform : Matrix3D [read-only]
Indicates the rotation of the Emitter instance relative to
the local coordinate system of the Renderer, as a matrix
transformation. | Emitter3D | ||
![]() | running : Boolean [read-only]
Indicates if the emitter is currently running. | Emitter | |
| spaceSort : Boolean = false
Identifies whether the particles should be arranged
into a spacially sorted array - this speeds up proximity
testing for those actions that need it. | Emitter3D | ||
![]() | useInternalTick : Boolean
Indicates whether the emitter should manage its own internal update
tick. | Emitter | |
| Method | Defined By | ||
|---|---|---|---|
The constructor creates an emitter 3D. | Emitter3D | ||
![]() |
Adds an Action to the Emitter. | Emitter | |
![]() | addActivity(activity:Activity):void
Adds an Activity to the Emitter. | Emitter | |
![]() | addInitializer(initializer:Initializer):void
Adds an Initializer object to the Emitter. | Emitter | |
![]() | addParticle(particle:Particle, applyInitializers:Boolean = false):void
Add a particle to the emitter. | Emitter | |
![]() | addParticles(particles:Vector.<Particle>, applyInitializers:Boolean = false):void
Adds existing particles to the emitter. | Emitter | |
![]() | dispatchCounterComplete():void
Used by counters to tell the emitter to dispatch a counter complete event. | Emitter | |
![]() |
Detects if the emitter is using a particular action or not. | Emitter | |
![]() | hasActionOfType(actionClass:Class):Boolean
Detects if the emitter is using an action of a particular class. | Emitter | |
![]() | hasActivity(activity:Activity):Boolean
Detects if the emitter is using a particular activity or not. | Emitter | |
![]() | hasActivityOfType(activityClass:Class):Boolean
Detects if the emitter is using an activity of a particular class. | Emitter | |
![]() | hasInitializer(initializer:Initializer):Boolean
Detects if the emitter is using a particular initializer or not. | Emitter | |
![]() | hasInitializerOfType(initializerClass:Class):Boolean
Detects if the emitter is using an initializer of a particular class. | Emitter | |
![]() | killAllParticles():void
Kill all the particles on this emitter. | Emitter | |
![]() | pause():void
Pauses the emitter. | Emitter | |
![]() | removeAction(action:Action):void
Removes an Action from the Emitter. | Emitter | |
![]() | removeActivity(activity:Activity):void
Removes an Activity from the Emitter. | Emitter | |
![]() | removeInitializer(initializer:Initializer):void
Removes an Initializer from the Emitter. | Emitter | |
![]() | removeParticle(particle:Particle):Boolean
Remove a particle from this emitter. | Emitter | |
![]() | removeParticles(particles:Vector.<Particle>):void
Remove a collection of particles from this emitter. | Emitter | |
![]() | resume():void
Resumes the emitter after a pause. | Emitter | |
![]() | runAhead(time:Number, frameRate:Number = 10):void
Makes the emitter skip forwards a period of time with a single update. | Emitter | |
![]() | start():void
Starts the emitter. | Emitter | |
![]() | stop():void
Stops the emitter, killing all current particles and returning them to the
particle factory for reuse. | Emitter | |
![]() | update(time:Number):void
Used to update the emitter. | Emitter | |
| Method | Defined By | ||
|---|---|---|---|
![]() | Emitter | ||
initParticle(particle:Particle):void [override] | Emitter3D | ||
sortParticles():void [override]
If the spaceSort property is true, this method creates the spaceSortedX
array. | Emitter3D | ||
| defaultParticleFactory | property |
defaultParticleFactory:ParticleFactory [read-only] The default particle factory used to manage the creation, reuse and destruction of particles.
public static function get defaultParticleFactory():ParticleFactory| position | property |
position:Vector3DIndicates the position of the Emitter instance relative to the local coordinate system of the Renderer.
public function get position():Vector3D public function set position(value:Vector3D):void| rotation | property |
rotation:QuaternionIndicates the rotation of the Emitter instance relative to the local coordinate system of the Renderer.
public function get rotation():Quaternion public function set rotation(value:Quaternion):void| rotationTransform | property |
rotationTransform:Matrix3D [read-only] Indicates the rotation of the Emitter instance relative to the local coordinate system of the Renderer, as a matrix transformation.
public function get rotationTransform():Matrix3D| spaceSort | property |
public var spaceSort:Boolean = falseIdentifies whether the particles should be arranged into a spacially sorted array - this speeds up proximity testing for those actions that need it.
| Emitter3D | () | Constructor |
public function Emitter3D()The constructor creates an emitter 3D.
| initParticle | () | method |
| sortParticles | () | method |
override protected function sortParticles():voidIf the spaceSort property is true, this method creates the spaceSortedX array.