| Package | org.flintparticles.threeD.actions |
| Class | public class MatchVelocity |
| Inheritance | MatchVelocity ActionBase |
This action has a priority of 10, so that it executes before other actions.
| Property | Defined by | ||
|---|---|---|---|
| acceleration : Number
The acceleration force applied to adjust velocity to match that
of the other particles.
| MatchVelocity | ||
| maxDistance : Number
The maximum distance, in pixels, over which this action operates.
| MatchVelocity | ||
![]() | priority : int
Returns a default priority of 0 for this action.
| ActionBase | |
| Method | Defined by | ||
|---|---|---|---|
|
MatchVelocity(maxDistance:Number = 0, acceleration:Number = 0)
The constructor creates a MatchVelocity action for use by
an emitter.
| MatchVelocity | ||
|
addedToEmitter(emitter:Emitter):void
This method does nothing.
| MatchVelocity | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
This method does nothing.
| MatchVelocity | ||
| acceleration | property |
acceleration:Number [read-write]The acceleration force applied to adjust velocity to match that of the other particles.
Implementation public function get acceleration():Number
public function set acceleration(value:Number):void
| maxDistance | property |
maxDistance:Number [read-write]The maximum distance, in pixels, over which this action operates. The particle will match its velocity other particles that are this close or closer to it.
Implementation public function get maxDistance():Number
public function set maxDistance(value:Number):void
| MatchVelocity | () | constructor |
public function MatchVelocity(maxDistance:Number = 0, acceleration:Number = 0)The constructor creates a MatchVelocity action for use by an emitter. To add a MatchVelocity to all particles created by an emitter, use the emitter's addAction method.
ParametersmaxDistance:Number (default = 0) — The maximum distance, in pixels, over which this action operates.
The particle will match its velocity other particles that are this close or closer to it.
|
|
acceleration:Number (default = 0) — The acceleration force applied to adjust velocity to match that
of 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.
|
| 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.
|