| Package | idv.cjcat.stardust.common.particles |
| Class | public class Particle |
| Subclasses | Particle2D, Particle3D |
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
The alpha value of the particle.
| Particle | ||
| collisionRadius : Number
The collision radius of the particle.
| Particle | ||
| color : uint
Particle color.
| Particle | ||
| dictionary : Dictionary
Dictionary for storing additional information.
| Particle | ||
| initAlpha : Number
The normal alpha value upon birth.
| Particle | ||
| initLife : Number
The initial life upon birth.
| Particle | ||
| initScale : Number
The normal scale upon birth.
| Particle | ||
| isDead : Boolean
Whether the particle is marked as dead.
| Particle | ||
| life : Number
The remaining life of the particle.
| Particle | ||
| mask : int
The mask value of the particle.
| Particle | ||
| mass : Number
The mass of the particle.
| Particle | ||
| recyclers : Dictionary | Particle | ||
| scale : Number
The scale of the particle.
| Particle | ||
| sortedIndexIterator : ParticleIterator
The sorted index iterator.
| Particle | ||
| target : *
Custom user data of the particle.
| Particle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Particle()
| Particle | ||
|
destroy():void
| Particle | ||
|
init():void
Initializes properties to default values.
| Particle | ||
| alpha | property |
public var alpha:NumberThe alpha value of the particle.
| collisionRadius | property |
public var collisionRadius:NumberThe collision radius of the particle.
| color | property |
public var color:uintParticle color.
This information can be used by the PixelRenderer class for determining pixel colors.
| dictionary | property |
public var dictionary:DictionaryDictionary for storing additional information.
| initAlpha | property |
public var initAlpha:NumberThe normal alpha value upon birth.
| initLife | property |
public var initLife:NumberThe initial life upon birth.
| initScale | property |
public var initScale:NumberThe normal scale upon birth.
| isDead | property |
public var isDead:BooleanWhether the particle is marked as dead.
Dead particles would be removed from simulation by an emitter.
| life | property |
public var life:NumberThe remaining life of the particle.
| mask | property |
public var mask:intThe mask value of the particle.
The particle can only affected by an action or initializer only if the bitwise AND of their masks is non-zero.
| mass | property |
public var mass:NumberThe mass of the particle.
| recyclers | property |
public var recyclers:Dictionary
| scale | property |
public var scale:NumberThe scale of the particle.
| sortedIndexIterator | property |
public var sortedIndexIterator:ParticleIteratorThe sorted index iterator.
| target | property |
public var target:*Custom user data of the particle.
Normally, this property contains information for renderers.
For instance this property should refer to a display object for a DisplayObjectRenderer.
| Particle | () | constructor |
public function Particle()
| destroy | () | method |
public function destroy():void
| init | () | method |
public function init():voidInitializes properties to default values.
life = 0. scale = 1. alpha = 1. mass = 1. mask = 1. collisoinRadius = 0. target = null. sortedIndex = NaN.