| Package | org.flintparticles.threeD.initializers |
| Class | public class Rotation |
| Inheritance | Rotation InitializerBase Object |
| Property | Defined By | ||
|---|---|---|---|
| angle : Number
When reading, returns the average of minAngle and maxAngle. | Rotation | ||
| axis : Vector3D
The axis for the rotation. | Rotation | ||
| maxAngle : Number
The maximum angle for particles initialised by
this initializer. | Rotation | ||
| minAngle : Number
The minimum angle for particles initialised by
this initializer. | Rotation | ||
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| Method | Defined By | ||
|---|---|---|---|
Rotation(axis:Vector3D = null, minAngle:Number = 0, maxAngle:Number)
The constructor creates a Rotation initializer for use by
an emitter. | Rotation | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
[override]
This method does nothing. | Rotation | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| angle | property |
angle:NumberWhen reading, returns the average of minAngle and maxAngle. When writing this sets both maxAngle and minAngle to the same angle value.
public function get angle():Number public function set angle(value:Number):void| axis | property |
axis:Vector3DThe axis for the rotation.
public function get axis():Vector3D public function set axis(value:Vector3D):void| maxAngle | property |
maxAngle:NumberThe maximum angle for particles initialised by this initializer.
public function get maxAngle():Number public function set maxAngle(value:Number):void| minAngle | property |
minAngle:NumberThe minimum angle for particles initialised by this initializer.
public function get minAngle():Number public function set minAngle(value:Number):void| Rotation | () | Constructor |
public function Rotation(axis:Vector3D = null, minAngle:Number = 0, maxAngle:Number)The constructor creates a Rotation initializer for use by an emitter. To add a Rotation to all particles created by an emitter, use the emitter's addInitializer method.
The rotation 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 axis around which the rotation occurs.
| |
minAngle:Number (default = 0) — The minimum angle, in radians, for the particle's rotation.
| |
maxAngle:Number (default = NaN) — The maximum angle, in radians, for the particle's rotation.
|
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 |