| Package | org.flintparticles.threeD.actions |
| Class | public class MinimumDistance |
| Inheritance | MinimumDistance ActionBase |
| Property | Defined by | ||
|---|---|---|---|
| acceleration : Number
The acceleration force applied to avoid the other particles.
| MinimumDistance | ||
| minimum : Number
The minimum distance, in pixels, that this action maintains between
particles.
| MinimumDistance | ||
| Method | Defined by | ||
|---|---|---|---|
|
MinimumDistance(minimum:Number, acceleration:Number)
The constructor creates a ApproachNeighbours action for use by
an emitter.
| MinimumDistance | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| MinimumDistance | ||
|
getDefaultPriority():Number
Returns a default priority of 0 for this action.
| MinimumDistance | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
This method does nothing.
| MinimumDistance | ||
| acceleration | property |
acceleration:Number [read-write]The acceleration force applied to avoid the other particles.
Implementation public function get acceleration():Number
public function set acceleration(value:Number):void
| minimum | property |
minimum:Number [read-write]The minimum distance, in pixels, that this action maintains between particles.
Implementation public function get minimum():Number
public function set minimum(value:Number):void
| MinimumDistance | () | constructor |
public function MinimumDistance(minimum:Number, acceleration:Number)The constructor creates a ApproachNeighbours action for use by an emitter. To add a ApproachNeighbours to all particles created by an emitter, use the emitter's addAction method.
Parametersminimum:Number — The minimum distance, in pixels, that this action maintains between
particles.
|
|
acceleration:Number — The acceleration force applied to avoid the other particles.
|
See also
| addedToEmitter | () | method |
public override function addedToEmitter(emitter:Emitter):voidThis method does nothing. Some derived classes override this method to perform actions when the action is added to an emitter.
Parametersemitter:Emitter — The Emitter that the Action was added to.
|
| getDefaultPriority | () | method |
public override function getDefaultPriority():NumberReturns a default priority of 0 for this action. Derived classes override this method if they want a different default priority.
ReturnsNumber |
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidThis method does nothing. All derived classes override this method to update each particle every frame.
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.
|