Packageorg.flintparticles.threeD.actions
Classpublic class Accelerate
InheritanceAccelerate Inheritance ActionBase

The Accelerate Action adjusts the velocity of the particle by a constant acceleration. This can be used, for example, to simulate gravity.



Public Properties
 PropertyDefined by
  acceleration : Vector3D
The acceleration, in pixels per second per second.
Accelerate
Public Methods
 MethodDefined by
  
Accelerate(acceleration:Vector3D)
The constructor creates an Acceleration action for use by an emitter.
Accelerate
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActionBase
 Inherited
Returns a default priority of 0 for this action.
ActionBase
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
Applies the acceleration to a particle for the specified time period.
Accelerate
Property detail
accelerationproperty
acceleration:Vector3D  [read-write]

The acceleration, in pixels per second per second.

Implementation
    public function get acceleration():Vector3D
    public function set acceleration(value:Vector3D):void
Constructor detail
Accelerate()constructor
public function Accelerate(acceleration:Vector3D)

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.

Parameters
acceleration:Vector3D — The acceleration to apply, in pixels per second per second.

See also

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

Applies 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

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.

See also