| Package | org.flintparticles.threeD.actions |
| Class | public class SpeedLimit |
| Inheritance | SpeedLimit ActionBase |
This action has aa priority of -5, so that it executes after all accelerations have occured.
| Property | Defined by | ||
|---|---|---|---|
| isMinimum : Boolean
Whether the speed is a minimum (true) or maximum (false) speed.
| SpeedLimit | ||
| limit : Number
The speed limit
| SpeedLimit | ||
![]() | priority : int
Returns a default priority of 0 for this action.
| ActionBase | |
| Method | Defined by | ||
|---|---|---|---|
|
SpeedLimit(speed:Number, isMinimum:Boolean = false)
The constructor creates a SpeedLimit action for use by
an emitter.
| SpeedLimit | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
This method does nothing.
| SpeedLimit | ||
| isMinimum | property |
isMinimum:Boolean [read-write]Whether the speed is a minimum (true) or maximum (false) speed.
Implementation public function get isMinimum():Boolean
public function set isMinimum(value:Boolean):void
| limit | property |
limit:Number [read-write]The speed limit
Implementation public function get limit():Number
public function set limit(value:Number):void
| SpeedLimit | () | constructor |
public function SpeedLimit(speed:Number, isMinimum:Boolean = false)The constructor creates a SpeedLimit action for use by an emitter. To add a SpeedLimit to all particles created by an emitter, use the emitter's addAction method.
Parametersspeed:Number — The speed limit for the action in pixels per second.
|
|
isMinimum:Boolean (default = false) — If true, particles travelling slower than the speed limit
are accelerated to the speed limit, otherwise particles travelling faster
than the speed limit are decelerated to the speed limit.
|
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.
|