This is the single renderable Particle object, used by Particles.as
See Particles.as for a full explanation.
public var material:ParticleMaterial
public var renderCommand:RenderParticle
public var renderRect:Rectangle
The rectangle containing the particles visible area in 2D.
public var renderScale:Number
public var size:Number
The size or scale factor of the particle.
public var vertex3D:Vertex3D
x:Number [read-write]Implementation
public function get x():Number
public function set x(value:Number):void
y:Number [read-write]Implementation
public function get y():Number
public function set y(value:Number):void
z:Number [read-write]Implementation
public function get z():Number
public function set z(value:Number):void
public function Particle(material:ParticleMaterial, size:Number = 1, x:Number = 0, y:Number = 0, z:Number = 0)
Parameters
| material:ParticleMaterial — The ParticleMaterial used for rendering the Particle
|
| |
| size:Number (default = 1) — The size of the particle. For some materials (ie BitmapParticleMaterial) this is used as a scale factor.
|
| |
| x:Number (default = 0) — x position of the particle
|
| |
| y:Number (default = 0) — y position of the particle
|
| |
| z:Number (default = 0) — z position of the particle
|
public override function getRenderListItem():IRenderListItem
Returns
public function updateRenderRect():void
This is called during the projection cycle. It updates the rectangular area that
the particle is drawn into. It's important for the culling phase, and changes dependent
on the type of material used.