Packageorg.flintparticles.threeD.actions
Classpublic class MatchRotateVelocity
InheritanceMatchRotateVelocity Inheritance ActionBase

The MatchRotateVelocity action applies an angular acceleration to the particle to match its angular velocity to that of its nearest neighbours.



Public Properties
 PropertyDefined by
  acceleration : Number
The angular acceleration applied to adjust velocity to match that of the other particles.
MatchRotateVelocity
  maxDistance : Number
The maximum distance, in pixels, over which this action operates.
MatchRotateVelocity
Public Methods
 MethodDefined by
  
MatchRotateVelocity(maxDistance:Number, acceleration:Number)
The constructor creates a MatchRotateVelocity action for use by an emitter.
MatchRotateVelocity
  
addedToEmitter(emitter:Emitter):void
This method does nothing.
MatchRotateVelocity
  
Returns a default priority of 0 for this action.
MatchRotateVelocity
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
This method does nothing.
MatchRotateVelocity
Property detail
accelerationproperty
acceleration:Number  [read-write]

The angular acceleration applied to adjust velocity to match that of the other particles.

Implementation
    public function get acceleration():Number
    public function set acceleration(value:Number):void
maxDistanceproperty 
maxDistance:Number  [read-write]

The maximum distance, in pixels, over which this action operates. The particle will match its angular velocity other particles that are this close or closer to it.

Implementation
    public function get maxDistance():Number
    public function set maxDistance(value:Number):void
Constructor detail
MatchRotateVelocity()constructor
public function MatchRotateVelocity(maxDistance:Number, acceleration:Number)

The constructor creates a MatchRotateVelocity action for use by an emitter. To add a MatchRotateVelocity to all particles created by an emitter, use the emitter's addAction method.

Parameters
maxDistance:Number — The maximum distance, in pixels, over which this action operates. The particle will match its angular velocity other particles that are this close or closer to it.
 
acceleration:Number — The angular acceleration applied to adjust velocity to match that of the other particles.

See also

Method detail
addedToEmitter()method
public override function addedToEmitter(emitter:Emitter):void

This method does nothing. Some derived classes override this method to perform actions when the action is added to an emitter.

Parameters
emitter:Emitter — The Emitter that the Action was added to.
getDefaultPriority()method 
public override function getDefaultPriority():Number

Returns a default priority of 0 for this action. Derived classes override this method if they want a different default priority.

Returns
Number
update()method 
public override function update(emitter:Emitter, particle:Particle, time:Number):void

This method does nothing. All derived classes override this method to update each particle every frame.

Parameters
emitter: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.