Packagecv.orion.filters
Classpublic class TurnToPathFilter
ImplementsIFilter

The TurnToPathFilter causes particles to point in the direction they are moving. This could be used for a fireworks effect to keep the rocket pointed in the direction it is moving.


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



Public Methods
 MethodDefined by
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
TurnToPathFilter
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.