Packageorg.flintparticles.threeD.emitters
Classpublic class Emitter3D
InheritanceEmitter3D Inheritance Emitter Inheritance flash.events.EventDispatcher
Subclasses Emitter3D

The Emitter3D class defines an emitter that exists in 3D space. It is the main emitter for using Flint in a 3D coordinate system.

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.



Public Properties
 PropertyDefined By
 Inheritedactions : Vector.<Action>
The array of all actions being used by this emitter.
Emitter
 Inheritedactivities : Vector.<Activity>
The array of all actions being used by this emitter.
Emitter
 Inheritedcounter : 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
 InheritedfixedFrameTime : Number
Indicates a fixed time (in seconds) to use for every frame.
Emitter
 Inheritedinitializers : Vector.<Initializer>
The array of all initializers being used by this emitter.
Emitter
 InheritedmaximumFrameTime : Number
The maximum duration for a single update frame, in seconds.
Emitter
 InheritedparticleFactory : ParticleFactory
This is the particle factory used by the emitter to create and dispose of particles.
Emitter
 Inheritedparticles : Vector.<Particle>
The collection of all particles being managed by this emitter.
Emitter
 InheritedparticlesArray : 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
 Inheritedrunning : 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
 InheriteduseInternalTick : Boolean
Indicates whether the emitter should manage its own internal update tick.
Emitter
Protected Properties
 PropertyDefined By
 Inherited_dispatchCounterComplete : Boolean = false
Indicates if the emitter should dispatch a counterComplete event at the end of the next update cycle.
Emitter
Public Methods
 MethodDefined By
  
The constructor creates an emitter 3D.
Emitter3D
 Inherited
addAction(action:Action):void
Adds an Action to the Emitter.
Emitter
 Inherited
addActivity(activity:Activity):void
Adds an Activity to the Emitter.
Emitter
 Inherited
addInitializer(initializer:Initializer):void
Adds an Initializer object to the Emitter.
Emitter
 Inherited
addParticle(particle:Particle, applyInitializers:Boolean = false):void
Add a particle to the emitter.
Emitter
 Inherited
addParticles(particles:Vector.<Particle>, applyInitializers:Boolean = false):void
Adds existing particles to the emitter.
Emitter
 Inherited
Used by counters to tell the emitter to dispatch a counter complete event.
Emitter
 Inherited
hasAction(action:Action):Boolean
Detects if the emitter is using a particular action or not.
Emitter
 Inherited
hasActionOfType(actionClass:Class):Boolean
Detects if the emitter is using an action of a particular class.
Emitter
 Inherited
hasActivity(activity:Activity):Boolean
Detects if the emitter is using a particular activity or not.
Emitter
 Inherited
hasActivityOfType(activityClass:Class):Boolean
Detects if the emitter is using an activity of a particular class.
Emitter
 Inherited
hasInitializer(initializer:Initializer):Boolean
Detects if the emitter is using a particular initializer or not.
Emitter
 Inherited
hasInitializerOfType(initializerClass:Class):Boolean
Detects if the emitter is using an initializer of a particular class.
Emitter
 Inherited
Kill all the particles on this emitter.
Emitter
 Inherited
pause():void
Pauses the emitter.
Emitter
 Inherited
removeAction(action:Action):void
Removes an Action from the Emitter.
Emitter
 Inherited
removeActivity(activity:Activity):void
Removes an Activity from the Emitter.
Emitter
 Inherited
removeInitializer(initializer:Initializer):void
Removes an Initializer from the Emitter.
Emitter
 Inherited
removeParticle(particle:Particle):Boolean
Remove a particle from this emitter.
Emitter
 Inherited
removeParticles(particles:Vector.<Particle>):void
Remove a collection of particles from this emitter.
Emitter
 Inherited
resume():void
Resumes the emitter after a pause.
Emitter
 Inherited
runAhead(time:Number, frameRate:Number = 10):void
Makes the emitter skip forwards a period of time with a single update.
Emitter
 Inherited
start():void
Starts the emitter.
Emitter
 Inherited
stop():void
Stops the emitter, killing all current particles and returning them to the particle factory for reuse.
Emitter
 Inherited
update(time:Number):void
Used to update the emitter.
Emitter
Protected Methods
 MethodDefined By
 Inherited
Emitter
  
initParticle(particle:Particle):void
[override]
Emitter3D
  
[override] If the spaceSort property is true, this method creates the spaceSortedX array.
Emitter3D
Events
 Event Summary Defined By
 InheritedDispatched when the counter for the particle system has finished its cycle and so the system will not emit any more particles unless the counter is changed or restarted.Emitter
 InheritedDispatched when an emitter attempts to update the particles' state but it contains no particles.Emitter
 InheritedDispatched when the particle system has updated and the state of the particles has changed.Emitter
 InheritedDispatched when a pre-existing particle is added to the emitter.Emitter
 InheritedDispatched when a particle is created and has just been added to the emitter.Emitter
 InheritedDispatched when a particle dies and is about to be removed from the system.Emitter
Property Detail
defaultParticleFactoryproperty
defaultParticleFactory:ParticleFactory  [read-only]

The default particle factory used to manage the creation, reuse and destruction of particles.


Implementation
    public static function get defaultParticleFactory():ParticleFactory
positionproperty 
position:Vector3D

Indicates the position of the Emitter instance relative to the local coordinate system of the Renderer.


Implementation
    public function get position():Vector3D
    public function set position(value:Vector3D):void
rotationproperty 
rotation:Quaternion

Indicates the rotation of the Emitter instance relative to the local coordinate system of the Renderer.


Implementation
    public function get rotation():Quaternion
    public function set rotation(value:Quaternion):void
rotationTransformproperty 
rotationTransform:Matrix3D  [read-only]

Indicates the rotation of the Emitter instance relative to the local coordinate system of the Renderer, as a matrix transformation.


Implementation
    public function get rotationTransform():Matrix3D
spaceSortproperty 
public var 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.

Constructor Detail
Emitter3D()Constructor
public function Emitter3D()

The constructor creates an emitter 3D.

Method Detail
initParticle()method
override protected function initParticle(particle:Particle):void

Parameters

particle:Particle

sortParticles()method 
override protected function sortParticles():void

If the spaceSort property is true, this method creates the spaceSortedX array.