Packagecv.orion.filters
Classpublic class DragFilter
ImplementsIFilter

The DragFilter determines how easily a particle moves around. The lower the number the easier it can move, the higher the number, the slower it moves.


Example
There are two ways to apply the filter. The first way it so set it via the config object. The second way is to add it to the effectFilters array itself.
  import cv.Orion;
  import cv.orion.filters.DragFilter;
  
  // First method
  var e:Orion = new Orion(linkageClass, null, {effectFilters:[new DragFilter(0.7)]});
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.effectFilters.push(new DragFilter(0.7));
  



Public Properties
 PropertyDefined by
  friction : Number
The friction to be applied
DragFilter
Public Methods
 MethodDefined by
  
DragFilter(friction:Number = 0.3)
Controls how easily a particle moves around.
DragFilter
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
DragFilter
Property detail
frictionproperty
public var friction:Number

The friction to be applied

Constructor detail
DragFilter()constructor
public function DragFilter(friction:Number = 0.3)

Controls how easily a particle moves around.

Parameters
friction:Number (default = 0.3) — The friction used to determine drag.
Method detail
applyFilter()method
public function applyFilter(particle:ParticleVO, target:Orion):void

Applies the specified filter to a particular particle.

Parameters
particle:ParticleVO — The individual particle.
 
target:Orion — The emitter associated with the particle.