Packageorg.flintparticles.threeD.actions
Classpublic class Jet
InheritanceJet Inheritance ActionBase Inheritance Object

The Jet Action applies an acceleration to the particle only if it is in the specified zone.



Public Properties
 PropertyDefined By
  acceleration : Vector3D
The acceleration, in coordinate units per second per second.
Jet
  invertZone : Boolean
If true, the zone is treated as the safe area and being ouside the zone results in the particle dying.
Jet
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  x : Number
The x coordinate of the acceleration, in coordinate units per second per second.
Jet
  y : Number
The y coordinate of the acceleration, in coordinate units per second per second.
Jet
  z : Number
The z coordinate of the acceleration, in coordinate units per second per second.
Jet
  zone : Zone3D
The zone in which to apply the acceleration.
Jet
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
Jet(acceleration:Vector3D = null, zone:Zone3D = null, invertZone:Boolean = false)
The constructor creates a Jet action for use by an emitter.
Jet
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActionBase
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
[override] This method does nothing.
Jet
Property Detail
accelerationproperty
acceleration:Vector3D

The acceleration, in coordinate units per second per second.


Implementation
    public function get acceleration():Vector3D
    public function set acceleration(value:Vector3D):void
invertZoneproperty 
invertZone:Boolean

If true, the zone is treated as the safe area and being ouside the zone results in the particle dying. Otherwise, being inside the zone causes the particle to die.


Implementation
    public function get invertZone():Boolean
    public function set invertZone(value:Boolean):void
xproperty 
x:Number

The x coordinate of the acceleration, in coordinate units per second per second.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The y coordinate of the acceleration, in coordinate units per second per second.


Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

The z coordinate of the acceleration, in coordinate units per second per second.


Implementation
    public function get z():Number
    public function set z(value:Number):void
zoneproperty 
zone:Zone3D

The zone in which to apply the acceleration.


Implementation
    public function get zone():Zone3D
    public function set zone(value:Zone3D):void
Constructor Detail
Jet()Constructor
public function Jet(acceleration:Vector3D = null, zone:Zone3D = null, invertZone:Boolean = false)

The constructor creates a Jet action for use by an emitter. To add a Jet to all particles created by an emitter, use the emitter's addAction method.

Parameters
acceleration:Vector3D (default = null) — The x coordinate of the acceleration to apply, in pixels per second per second.
 
zone:Zone3D (default = null) — The y coordinate of the acceleration to apply, in pixels per second per second.
 
invertZone:Boolean (default = false) — The zone in which to apply the acceleration.

See also

Method Detail
update()method
override public function update(emitter:Emitter, particle:Particle, time:Number):void

This method does nothing. All derived classes override this method to update each particle every frame.

Parameters

emitter:Emitter — The Emitter that created the particle.
 
particle:Particle — The particle to be updated.
 
time:Number — The duration of the frame - used for time based updates.