Package | cv.orion.filters |
Class | public class MouseSpringFilter |
Implements | IFilter |
import cv.Orion; import cv.orion.filters.MouseSpringFilter; // First method var e:Orion = new Orion(linkageClass, null, {effectFilters:[new MouseSpringFilter(0.01)]}); // Second method var e2:Orion = new Orion(linkageClass); e2.effectFilters.push(new MouseSpringFilter(0.01));
Property | Defined by | ||
---|---|---|---|
minDist : Number
The minimum distance the particle must be from the mouse for the filter to take effect.
| MouseSpringFilter | ||
springStrength : Number
The strength of the spring used in the motion.
| MouseSpringFilter |
Method | Defined by | ||
---|---|---|---|
MouseSpringFilter(springStrength:Number = 0.05, minDist:Number = 100)
Causes particles to be attracted to the mouse and move with a spring motion.
| MouseSpringFilter | ||
Applies the specified filter to a particular particle.
| MouseSpringFilter |
minDist | property |
public var minDist:Number
The minimum distance the particle must be from the mouse for the filter to take effect.
springStrength | property |
public var springStrength:Number
The strength of the spring used in the motion.
MouseSpringFilter | () | constructor |
public function MouseSpringFilter(springStrength:Number = 0.05, minDist:Number = 100)
Causes particles to be attracted to the mouse and move with a spring motion.
ParametersspringStrength:Number (default = 0.05 ) — The strength of the spring used in the motion.
|
|
minDist:Number (default = 100 ) — The minimum distance the particle must be from the mouse
for the filter to take effect.
|
applyFilter | () | method |
public function applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
Parametersparticle:ParticleVO — The individual particle.
|
|
target:Orion — The emitter associated with the particle.
|