Packagecv.orion.filters
Classpublic class BounceEdgeFilter
ImplementsIFilter

The BounceEdgeFilter forces a given particle to rebound off any edges it may encounter within the bounds of the emitter.


Example
There are two ways to apply the edge filter. The first way it so set it via the config object. The second way is to add it to the edgeFilter property itself.
  import cv.Orion;
  import cv.orion.filters.BounceEdgeFilter;
  
  // First method
  var e:Orion = new Orion(linkageClass, null, {edgeFilter:new BounceEdgeFilter(-0.5)});
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.edgeFilter = new BounceEdgeFilter(-0.5);
  



Public Methods
 MethodDefined by
  
BounceEdgeFilter(value:Number = -0.5)
Applies the specified filter to a particular particle.
BounceEdgeFilter
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
BounceEdgeFilter
Constructor detail
BounceEdgeFilter()constructor
public function BounceEdgeFilter(value:Number = -0.5)

Applies the specified filter to a particular particle.

Parameters
value:Number (default = -0.5) — The amount to multiply against the x and y velocity. If negative, it will reverse motion (bounce).
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.