Packageorg.flintparticles.threeD.initializers
Classpublic class RotateVelocity
InheritanceRotateVelocity Inheritance InitializerBase Inheritance Object

The RotateVelocity Initializer sets the angular velocity of the particle. It is usually combined with the Rotate action to rotate the particle using this angular velocity.



Public Properties
 PropertyDefined By
  angVelocity : Number
When reading, returns the average of minAngVelocity and maxAngVelocity.
RotateVelocity
  axis : Vector3D
The axis for the rotation.
RotateVelocity
  maxAngVelocity : Number
The maximum angular velocity value for particles initialised by this initializer.
RotateVelocity
  minAngVelocity : Number
The minimum angular velocity value for particles initialised by this initializer.
RotateVelocity
 Inheritedpriority : int
Returns a default priority of 0 for this action.
InitializerBase
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
InitializerBase
Public Methods
 MethodDefined By
  
RotateVelocity(axis:Vector3D = null, minAngVelocity:Number = 0, maxAngVelocity:Number)
The constructor creates a RotateVelocity initializer for use by an emitter.
RotateVelocity
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
RotateVelocity
 Inherited
This method does nothing.
InitializerBase
Property Detail
angVelocityproperty
angVelocity:Number

When reading, returns the average of minAngVelocity and maxAngVelocity. When writing this sets both maxAngVelocity and minAngVelocity to the same angular velocity value.


Implementation
    public function get angVelocity():Number
    public function set angVelocity(value:Number):void
axisproperty 
axis:Vector3D

The axis for the rotation.


Implementation
    public function get axis():Vector3D
    public function set axis(value:Vector3D):void
maxAngVelocityproperty 
maxAngVelocity:Number

The maximum angular velocity value for particles initialised by this initializer. Should be between 0 and 1.


Implementation
    public function get maxAngVelocity():Number
    public function set maxAngVelocity(value:Number):void
minAngVelocityproperty 
minAngVelocity:Number

The minimum angular velocity value for particles initialised by this initializer. Should be between 0 and 1.


Implementation
    public function get minAngVelocity():Number
    public function set minAngVelocity(value:Number):void
Constructor Detail
RotateVelocity()Constructor
public function RotateVelocity(axis:Vector3D = null, minAngVelocity:Number = 0, maxAngVelocity:Number)

The constructor creates a RotateVelocity initializer for use by an emitter. To add a RotateVelocity to all particles created by an emitter, use the emitter's addInitializer method.

The angularVelocity of particles initialized by this class will be a random value between the minimum and maximum values set. If no maximum value is set, the minimum value is used with no variation.

Parameters
axis:Vector3D (default = null) — The minimum angularVelocity, in radians per second, for the particle's angularVelocity.
 
minAngVelocity:Number (default = 0) — The maximum angularVelocity, in radians per second, for the particle's angularVelocity.
 
maxAngVelocity:Number (default = NaN)

See also

Method Detail
initialize()method
override public function initialize(emitter:Emitter, particle:Particle):void

This method does nothing. All derived classes override this method to initialize each particle created by the emitter.

Parameters

emitter:Emitter
 
particle:Particle