| Package | org.flintparticles.threeD.initializers |
| Class | public class RotateVelocity |
| Inheritance | RotateVelocity InitializerBase Object |
| Property | Defined 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 | ||
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| Method | Defined By | ||
|---|---|---|---|
RotateVelocity(axis:Vector3D = null, minAngVelocity:Number = 0, maxAngVelocity:Number)
The constructor creates a RotateVelocity initializer for use by
an emitter. | RotateVelocity | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
[override]
This method does nothing. | RotateVelocity | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| angVelocity | property |
angVelocity:NumberWhen reading, returns the average of minAngVelocity and maxAngVelocity. When writing this sets both maxAngVelocity and minAngVelocity to the same angular velocity value.
public function get angVelocity():Number public function set angVelocity(value:Number):void| axis | property |
axis:Vector3DThe axis for the rotation.
public function get axis():Vector3D public function set axis(value:Vector3D):void| maxAngVelocity | property |
maxAngVelocity:NumberThe maximum angular velocity value for particles initialised by this initializer. Should be between 0 and 1.
public function get maxAngVelocity():Number public function set maxAngVelocity(value:Number):void| minAngVelocity | property |
minAngVelocity:NumberThe minimum angular velocity value for particles initialised by this initializer. Should be between 0 and 1.
public function get minAngVelocity():Number public function set minAngVelocity(value:Number):void| 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.
Parametersaxis: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
| initialize | () | method |
override public function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parameters
emitter:Emitter | |
particle:Particle |