| Package | org.flintparticles.threeD.actions |
| Class | public class Accelerate |
| Inheritance | Accelerate ActionBase |
| Property | Defined by | ||
|---|---|---|---|
| acceleration : Vector3D
The acceleration, in coordinate units per second per second.
| Accelerate | ||
![]() | priority : 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.
| Accelerate | ||
| y : Number
The y coordinate of the acceleration, in
coordinate units per second per second.
| Accelerate | ||
| z : Number
The z coordinate of the acceleration, in
coordinate units per second per second.
| Accelerate | ||
| Method | Defined by | ||
|---|---|---|---|
|
Accelerate(acceleration:Vector3D = null)
The constructor creates an Acceleration action for use by an emitter.
| Accelerate | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
Applies the acceleration to a particle for the specified time period.
| Accelerate | ||
| acceleration | property |
acceleration:Vector3D [read-write]The acceleration, in coordinate units per second per second.
Implementation public function get acceleration():Vector3D
public function set acceleration(value:Vector3D):void
| x | property |
x:Number [read-write]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
| y | property |
y:Number [read-write]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
| z | property |
z:Number [read-write]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
| Accelerate | () | constructor |
public function Accelerate(acceleration:Vector3D = null)The constructor creates an Acceleration action for use by an emitter. To add an Accelerator to all particles created by an emitter, use the emitter's addAction method.
Parametersacceleration:Vector3D (default = null) — The acceleration to apply, in coordinate units
per second per second.
|
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidApplies the acceleration to a particle for the specified time period.
This method is called by the emitter and need not be called by the user
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.
|
See also