Package | flare.core |
Class | public class Particle3D |
Inheritance | Particle3D ![]() |
Property | Defined By | ||
---|---|---|---|
rotation : Number = 0
The rotation of the particle in radians. | Particle3D | ||
sizeX : Number = 1
The size along the x axis of the particle. | Particle3D | ||
sizeY : Number = 1
The size along the y axis of the particle. | Particle3D | ||
x : Number = 0
The x position of the particle. | Particle3D | ||
y : Number = 0
The y position of the particle. | Particle3D | ||
z : Number = 0
The z position of the particle. | Particle3D |
Method | Defined By | ||
---|---|---|---|
Creates a new Particle3D objects. | Particle3D | ||
You must override this method to implement a custom particle. | Particle3D | ||
init(emiter:ParticleEmiter3D):void
This method is called by the ParticleEmiter3D when needs to initializate the particle. | Particle3D | ||
update(time:Number):void
This method is called each frame by the ParticleEmiter3D class when needs to update the particle. | Particle3D |
rotation | property |
public var rotation:Number = 0
The rotation of the particle in radians.
sizeX | property |
public var sizeX:Number = 1
The size along the x axis of the particle.
sizeY | property |
public var sizeY:Number = 1
The size along the y axis of the particle.
x | property |
public var x:Number = 0
The x position of the particle.
y | property |
public var y:Number = 0
The y position of the particle.
z | property |
public var z:Number = 0
The z position of the particle.
Particle3D | () | Constructor |
public function Particle3D()
Creates a new Particle3D objects.
clone | () | method |
public function clone():Particle3D
You must override this method to implement a custom particle.
ReturnsParticle3D — A new cloned particle.
|
init | () | method |
public function init(emiter:ParticleEmiter3D):void
This method is called by the ParticleEmiter3D when needs to initializate the particle. Each particle could be initialized and reused many times while the emiter is active.
Parameters
emiter:ParticleEmiter3D — The parent ParticleEmiter3D object that fires the particle.
|
update | () | method |
public function update(time:Number):void
This method is called each frame by the ParticleEmiter3D class when needs to update the particle.
Parameters
time:Number — The life time of the particle (from 0 to 1 ).
|