| Package | org.flintparticles.threeD.actions |
| Class | public class Jet |
| Inheritance | Jet ActionBase |
| Property | Defined by | ||
|---|---|---|---|
| acceleration : Vector3D
The x coordinate of the acceleration.
| Jet | ||
| invertZone : Boolean
If true, the zone is treated as the safe area and being ouside the zone
results in the particle dying.
| Jet | ||
| zone : Zone3D
The zone in which to apply the acceleration.
| Jet | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates a Jet action for use by
an emitter.
| Jet | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
getDefaultPriority():Number
Returns a default priority of 0 for this action.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
This method does nothing.
| Jet | ||
| acceleration | property |
acceleration:Vector3D [read-write]The x coordinate of the acceleration.
Implementation public function get acceleration():Vector3D
public function set acceleration(value:Vector3D):void
| invertZone | property |
invertZone:Boolean [read-write]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
| zone | property |
zone:Zone3D [read-write]The zone in which to apply the acceleration.
Implementation public function get zone():Zone3D
public function set zone(value:Zone3D):void
| Jet | () | constructor |
public function Jet(acceleration:Vector3D, accelerationY:Number, zone:Zone3D, 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.
Parametersacceleration:Vector3D — The x coordinate of the acceleration to apply, in pixels
per second per second.
|
|
accelerationY:Number — The y coordinate of the acceleration to apply, in pixels
per second per second.
|
|
zone:Zone3D — The zone in which to apply the acceleration.
|
|
invertZone:Boolean (default = false) — If false (the default) the acceleration is applied only to particles inside
the zone. If true the acceleration is applied only to particles outside the zone.
|
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidThis method does nothing. All derived classes override this method to update each particle every frame.
Parametersemitter: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.
|