| Package | org.flintparticles.threeD.initializers |
| Class | public class FaceAxis |
| Inheritance | FaceAxis InitializerBase |
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 | ||
|---|---|---|---|
|
The constructor creates a FaceAxis initializer for use by
an emitter.
| FaceAxis | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
|
This method does nothing.
| FaceAxis | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
| axis | property |
axis:Vector3D [read-write]The face axis of the particles.
Implementation 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 |
public override function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parametersemitter:Emitter |
|
particle:Particle |