| Package | org.flintparticles.threeD.particles |
| Class | public class Particle3D |
| Inheritance | Particle3D Particle Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | age : Number = 0
The age of the particle, in seconds. | Particle | |
![]() | alpha : 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 | ||
![]() | collisionRadius : Number = 1
The radius of the particle, for collision approximation
| Particle | |
![]() | color : uint = 0xFFFFFFFF
The 32bit ARGB color of the particle. | Particle | |
![]() | colorTransform : ColorTransform [read-only]
A ColorTransform object that converts white to the colour of the particle. | Particle | |
![]() | dictionary : Dictionary [read-only]
The dictionary object enables actions and activities to add additional properties to the particle. | Particle | |
![]() | energy : 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 | ||
![]() | image : * = 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 | ||
![]() | isDead : Boolean = false
Whether the particle is dead and should be removed from the stage. | Particle | |
![]() | lifetime : Number = 0
The lifetime of the particle, in seconds. | Particle | |
![]() | mass : 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 | ||
![]() | scale : 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 | ||
| Method | Defined 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 | ||
![]() | revive():void | Particle | |
| angVelocity | property |
public var angVelocity:Vector3DThe 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.
| faceAxis | property |
public var faceAxis:Vector3DThe axis in the particle's own coordinate space that indicates the direction that the particle is facing.
| inertia | property |
inertia:Number [read-only] The moment of inertia of the particle about its center point
public function get inertia():Number| position | property |
public var position:Vector3DThe position of the particle (in the renderer's units).
| projectedPosition | property |
public var projectedPosition:Vector3DPosition vector projected into screen space. Used by renderers.
| rotation | property |
public var rotation:QuaternionThe rotation of the particle, represented as a unit quaternion.
| sortID | property |
public var sortID:int = -1The position of the particle in the emitter's x-axis spacial sorted array
| velocity | property |
public var velocity:Vector3DThe velocity of the particle (in the renderer's units per second).
| zDepth | property |
public var zDepth:Number = 0z depth of particle in renderer's camera space
| 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.
| clone | () | method |
override public function clone(factory:ParticleFactory = null):ParticleCreates 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) |
Particle |
| initialize | () | method |
override public function initialize():voidSets the particles properties to their default values.