Packageorg.flintparticles.threeD.actions
Classpublic class TargetVelocity
InheritanceTargetVelocity Inheritance ActionBase Inheritance Object

The TargetVelocity action adjusts the velocity of the particle towards the target velocity.



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  rate : Number
Adjusts how quickly the particle reaches the target angular velocity.
TargetVelocity
  targetVelocity : Vector3D
The x coordinate of the target velocity, in pixels per second.s
TargetVelocity
  x : Number
The x coordinate of the target velocity.
TargetVelocity
  y : Number
The y coordinate of the target velocity.
TargetVelocity
  z : Number
The z coordinate of the target velocity.
TargetVelocity
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
TargetVelocity(targetVelocity:Vector3D = null, rate:Number = 0.1)
The constructor creates a TargetVelocity action for use by an emitter.
TargetVelocity
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActionBase
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
[override] This method does nothing.
TargetVelocity
Property Detail
rateproperty
rate:Number

Adjusts how quickly the particle reaches the target angular velocity. Larger numbers cause it to approach the target angular velocity more quickly.


Implementation
    public function get rate():Number
    public function set rate(value:Number):void
targetVelocityproperty 
targetVelocity:Vector3D

The x coordinate of the target velocity, in pixels per second.s


Implementation
    public function get targetVelocity():Vector3D
    public function set targetVelocity(value:Vector3D):void
xproperty 
x:Number

The x coordinate of the target velocity.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The y coordinate of the target velocity.


Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

The z coordinate of the target velocity.


Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor Detail
TargetVelocity()Constructor
public function TargetVelocity(targetVelocity:Vector3D = null, rate:Number = 0.1)

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

Parameters
targetVelocity:Vector3D (default = null) — The x coordinate of the target velocity, in pixels per second.
 
rate:Number (default = 0.1) — The y coordinate of the target velocity, in pixels per second.

See also

Method Detail
update()method
override public 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.