| Package | org.flintparticles.twoD.actions |
| Class | public class LinearDrag |
| Inheritance | LinearDrag ActionBase Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| drag : Number
The amount of drag. | LinearDrag | ||
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| Method | Defined By | ||
|---|---|---|---|
LinearDrag(drag:Number = 0)
The constructor creates a LinearDrag action for use by an emitter. | LinearDrag | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Calculates the drag on the particle and applies it for the period of
time indicated. | LinearDrag | ||
| drag | property |
drag:NumberThe amount of drag. A higher number produces a stronger drag force.
public function get drag():Number public function set drag(value:Number):void| LinearDrag | () | Constructor |
public function LinearDrag(drag:Number = 0)The constructor creates a LinearDrag action for use by an emitter. To add a LinearDrag to all particles created by an emitter, use the emitter's addAction method.
Parametersdrag:Number (default = 0) — The amount of drag. A higher number produces a stronger drag
force.
|
See also
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates the drag on the particle and applies it for the period of time indicated.
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