Packageorg.flintparticles.threeD.particles
Classpublic class Particle3D
InheritanceParticle3D Inheritance Particle Inheritance Object

The Particle3D class extends the Particle class to include state properties that are relevant to particles in 3D space.



Public Properties
 PropertyDefined By
 Inheritedage : Number = 0
The age of the particle, in seconds.
Particle
 Inheritedalpha : Number
[read-only]
Particle
  angVelocity : Vector3D
The rate of rotation of the particle, represented as a vector in the direction of the axis of rotation and whose magnitude indicates the number of rotations per second.
Particle3D
 InheritedcollisionRadius : Number = 1
The radius of the particle, for collision approximation
Particle
 Inheritedcolor : uint = 0xFFFFFFFF
The 32bit ARGB color of the particle.
Particle
 InheritedcolorTransform : ColorTransform
[read-only] A ColorTransform object that converts white to the colour of the particle.
Particle
 Inheriteddictionary : Dictionary
[read-only] The dictionary object enables actions and activities to add additional properties to the particle.
Particle
 Inheritedenergy : Number = 1
The energy of the particle.
Particle
  faceAxis : Vector3D
The axis in the particle's own coordinate space that indicates the direction that the particle is facing.
Particle3D
 Inheritedimage : * = null
The object used to display the image.
Particle
  inertia : Number
[read-only] The moment of inertia of the particle about its center point
Particle3D
 InheritedisDead : Boolean = false
Whether the particle is dead and should be removed from the stage.
Particle
 Inheritedlifetime : Number = 0
The lifetime of the particle, in seconds.
Particle
 Inheritedmass : Number = 1
The mass of the particle ( 1 is the default ).
Particle
  position : Vector3D
The position of the particle (in the renderer's units).
Particle3D
  projectedPosition : Vector3D
Position vector projected into screen space.
Particle3D
  rotation : Quaternion
The rotation of the particle, represented as a unit quaternion.
Particle3D
 Inheritedscale : Number = 1
The scale of the particle ( 1 is normal size ).
Particle
  sortID : int = -1
The position of the particle in the emitter's x-axis spacial sorted array
Particle3D
  velocity : Vector3D
The velocity of the particle (in the renderer's units per second).
Particle3D
  zDepth : Number = 0
z depth of particle in renderer's camera space
Particle3D
Public Methods
 MethodDefined By
  
Creates a Particle3D.
Particle3D
  
[override] Creates a new particle with all the same properties as this one.
Particle3D
  
initialize():void
[override] Sets the particles properties to their default values.
Particle3D
 Inherited
revive():void
Particle
Property Detail
angVelocityproperty
public var angVelocity:Vector3D

The rate of rotation of the particle, represented as a vector in the direction of the axis of rotation and whose magnitude indicates the number of rotations per second.

faceAxisproperty 
public var faceAxis:Vector3D

The axis in the particle's own coordinate space that indicates the direction that the particle is facing.

inertiaproperty 
inertia:Number  [read-only]

The moment of inertia of the particle about its center point


Implementation
    public function get inertia():Number
positionproperty 
public var position:Vector3D

The position of the particle (in the renderer's units).

projectedPositionproperty 
public var projectedPosition:Vector3D

Position vector projected into screen space. Used by renderers.

rotationproperty 
public var rotation:Quaternion

The rotation of the particle, represented as a unit quaternion.

sortIDproperty 
public var sortID:int = -1

The position of the particle in the emitter's x-axis spacial sorted array

velocityproperty 
public var velocity:Vector3D

The velocity of the particle (in the renderer's units per second).

zDepthproperty 
public var zDepth:Number = 0

z depth of particle in renderer's camera space

Constructor Detail
Particle3D()Constructor
public function Particle3D()

Creates a Particle3D. Alternatively particles can be reused by using an instance of the Particle3DCreator class to create them. Usually the emitter will create the particles and the user doesn't need to create them.

Method Detail
clone()method
override public function clone(factory:ParticleFactory = null):Particle

Creates a new particle with all the same properties as this one.

Note that the new particle will use the same image object as the one you're cloning. This is fine if the particles are used with a Bitmaprenderer, but if they are used with a DisplayObjectRenderer you will need to replace teh image property with a new image, otherwise only one of the particles (original or clone) will be displayed.

Parameters

factory:ParticleFactory (default = null)

Returns
Particle
initialize()method 
override public function initialize():void

Sets the particles properties to their default values.