Packageflare.physics
Classpublic class DragForce
ImplementsIForce

Force simulating frictional drag forces (e.g., air resistance). For each particle, this force applies a drag based on the particles velocity (F = a v, where a is a drag co-efficient and v is the velocity of the particle).



Public Properties
 PropertyDefined by
  drag : Number
The drag co-efficient.
DragForce
Public Methods
 MethodDefined 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
Property detail
dragproperty
drag:Number  [read-write]

The drag co-efficient.

Implementation
    public function get drag():Number
    public function set drag(value:Number):void
Constructor detail
DragForce()constructor
public function DragForce(dc:Number = 0.1)

Creates a new DragForce with given drag co-efficient.

Parameters
dc:Number (default = 0.1) — the drag co-efficient.
Method detail
apply()method
public function apply(sim:Simulation):void

Applies this force to a simulation.

Parameters
sim:Simulation — the Simulation to apply the force to