Packageorg.flintparticles.threeD.initializers
Classpublic class FaceAxis
InheritanceFaceAxis Inheritance InitializerBase Inheritance Object

The FaceAxis Initializer sets the face axis of the particle. The face axis is a unit vector in the coordinate space of the particle that indicates the "forward" direction for the particle.

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.



Public Properties
 PropertyDefined By
  axis : Vector3D
The face axis of the particles.
FaceAxis
 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
  
FaceAxis(axis:Vector3D = null)
The constructor creates a FaceAxis initializer for use by an emitter.
FaceAxis
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
FaceAxis
 Inherited
This method does nothing.
InitializerBase
Property Detail
axisproperty
axis:Vector3D

The face axis of the particles.


Implementation
    public function get axis():Vector3D
    public function set axis(value:Vector3D):void
Constructor Detail
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.

Parameters
axis:Vector3D (default = null) — The face axis for the particles.

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