The WindFilter causes particles to be swept to a side at a given rate. Much
like horizontal gravity.
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.WindFilter;
// First method
var e:Orion = new Orion(linkageClass, null, {effectFilters:[new WindFilter(2)]});
// Second method
var e2:Orion = new Orion(linkageClass);
e2.effectFilters.push(new WindFilter(2));
public var value:Number
The current rate affeecting th X axis.
public function WindFilter(value:Number = 0.3)
Causes particles to be attracted to the floor.
Parameters
| value:Number (default = 0.3 ) — The velocity added to the X axis. The higher the number, the stronger
the wind is. Use negatives to push particles left, positive numbers to push right.
|
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.
|
Copyright 2009 Gabriel Mariani (http://blog.coursevector.com/orion)