| Package | org.flintparticles.actions |
| Class | public class MouseExplosion |
| Inheritance | MouseExplosion Action |
| Property | Defined by | ||
|---|---|---|---|
| epsilon : Number
The minimum distance for which the explosion force is calculated.
| MouseExplosion | ||
| power : Number
The strength of the explosive force.
| MouseExplosion | ||
| Method | Defined by | ||
|---|---|---|---|
|
MouseExplosion(power:Number, epsilon:Number = 1)
The constructor creates a MouseExplosion action for use by
an emitter.
| MouseExplosion | ||
![]() |
addedToEmitter(emitter:Emitter):void
The addedToEmitter method is called by the emitter when the Action is added to it
It is called within the emitter's addAction method and need not
be called by the user.
| Action | |
![]() |
getDefaultPriority():Number
The getDefaultPriority method is used to order the execution of actions.
| Action | |
|
The update method is used by the emitter to apply the action
to every particle.
| MouseExplosion | ||
| epsilon | property |
epsilon:Number [read-write]The minimum distance for which the explosion force is calculated. Particles closer than this distance experience the explosion as it they were this distance away. This stops the explosion effect blowing up as distances get small.
Implementation public function get epsilon():Number
public function set epsilon(value:Number):void
| power | property |
power:Number [read-write]The strength of the explosive force.
Implementation public function get power():Number
public function set power(value:Number):void
| MouseExplosion | () | constructor |
public function MouseExplosion(power:Number, epsilon:Number = 1)The constructor creates a MouseExplosion action for use by an emitter. To add a MouseExplosion to all particles created by an emitter, use the emitter's addAction method.
Parameterspower:Number — The minimum distance for which the explosion force is calculated.
Particles closer than this distance experience the explosion as it they were
this distance away. This stops the explosion effect blowing up as distances get
small.
|
|
epsilon:Number (default = 1) |
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidThe update method is used by the emitter to apply the action to every particle. It is called within the emitter's update loop and need not be called by the user.
Parametersemitter:Emitter — The Emitter that created the particle.
|
|
particle:Particle — The particle to be updated.
|
|
time:Number — The duration of the frame - used for time based updates.
|