Packageorg.flintparticles.threeD.actions
Classpublic class TargetRotateVelocity
InheritanceTargetRotateVelocity Inheritance ActionBase Inheritance Object

The TargetRotateVelocity action adjusts the angular velocity of the particle towards the target angular velocity.



Public Properties
 PropertyDefined By
  axis : Vector3D
The axis for the target angular velocity.
TargetRotateVelocity
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  rate : Number
Adjusts how quickly the particle reaches the target angular velocity.
TargetRotateVelocity
  rotateSpeed : Number
The size of the target angular velocity.
TargetRotateVelocity
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
TargetRotateVelocity(axis:Vector3D = null, rotateSpeed:Number = 0, rate:Number = 0.1)
The constructor creates a TargetRotateVelocity action for use by an emitter.
TargetRotateVelocity
 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.
TargetRotateVelocity
Property Detail
axisproperty
axis:Vector3D

The axis for the target angular velocity.


Implementation
    public function get axis():Vector3D
    public function set axis(value:Vector3D):void
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
rotateSpeedproperty 
rotateSpeed:Number

The size of the target angular velocity.


Implementation
    public function get rotateSpeed():Number
    public function set rotateSpeed(value:Number):void
Constructor Detail
TargetRotateVelocity()Constructor
public function TargetRotateVelocity(axis:Vector3D = null, rotateSpeed:Number = 0, rate:Number = 0.1)

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

Parameters
axis:Vector3D (default = null) — The axis the velocity acts around.
 
rotateSpeed:Number (default = 0) — The target angular velocity, in radians per second.
 
rate:Number (default = 0.1) — Adjusts how quickly the particle reaches the target angular velocity. Larger numbers cause it to approach the target angular velocity more quickly.

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.