Packagecv.orion.filters
Classpublic class WanderFilter
ImplementsIFilter

The WanderFilter causes Brownian motion on particles. This is useful for effects like dust or snow.


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.WanderFilter;
  
  // First method
  var e:Orion = new Orion(linkageClass, null, {effectFilters:[new WanderFilter(5)]});
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.effectFilters.push(new WanderFilter(5));
  



Public Properties
 PropertyDefined by
  friction : Number
The friction applied to it's wandering
WanderFilter
  value : Number
How much it will move.
WanderFilter
Public Methods
 MethodDefined by
  
WanderFilter(value:Number = 0.2, friction:Number = 0.95)
Causes particle to make random movements.
WanderFilter
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
WanderFilter
Property detail
frictionproperty
public var friction:Number

The friction applied to it's wandering

valueproperty 
public var value:Number

How much it will move.

Constructor detail
WanderFilter()constructor
public function WanderFilter(value:Number = 0.2, friction:Number = 0.95)

Causes particle to make random movements.

Parameters
value:Number (default = 0.2) — How much it will move.
 
friction:Number (default = 0.95)
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.