| Package | org.flintparticles.threeD.initializers |
| Class | public class FaceAxis |
| Inheritance | FaceAxis InitializerBase Object |
The face axis is used when rotating the particle to the direction of motion and when using a display object to represent the particle - the display object is rotated so that its x axis points in the direction of the facing axis of the particle.
| Property | Defined By | ||
|---|---|---|---|
| axis : Vector3D
The face axis of the particles. | FaceAxis | ||
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| Method | Defined By | ||
|---|---|---|---|
FaceAxis(axis:Vector3D = null)
The constructor creates a FaceAxis initializer for use by
an emitter. | FaceAxis | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
[override]
This method does nothing. | FaceAxis | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| axis | property |
axis:Vector3DThe face axis of the particles.
public function get axis():Vector3D public function set axis(value:Vector3D):void| FaceAxis | () | Constructor |
public function FaceAxis(axis:Vector3D = null)The constructor creates a FaceAxis initializer for use by an emitter. To add a FaceAxis to all particles created by an emitter, use the emitter's addInitializer method.
Parametersaxis:Vector3D (default = null) — The face axis for the particles.
|
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 |