| Package | flare.physics |
| Class | public class DragForce |
| Implements | IForce |
F = a v, where a is a drag co-efficient and
v is the velocity of the particle).
| Property | Defined by | ||
|---|---|---|---|
| drag : Number The drag co-efficient.
| DragForce | ||
| Method | Defined by | ||
|---|---|---|---|
|
DragForce(dc:Number = 0.1)
Creates a new DragForce with given drag co-efficient.
| DragForce | ||
|
apply(sim:Simulation):void
Applies this force to a simulation.
| DragForce | ||
| drag | property |
drag:Number [read-write]The drag co-efficient.
Implementation public function get drag():Number
public function set drag(value:Number):void
| DragForce | () | constructor |
public function DragForce(dc:Number = 0.1)Creates a new DragForce with given drag co-efficient.
Parametersdc:Number (default = 0.1) — the drag co-efficient.
|
| apply | () | method |
public function apply(sim:Simulation):voidApplies this force to a simulation.
Parameterssim:Simulation — the Simulation to apply the force to
|