Packageflare.core
Classpublic class Particle3D
InheritanceParticle3D Inheritance Object

The Particle3D is used as a base template class for ParticleEmiter3D.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
rotationproperty
public var rotation:Number = 0

The rotation of the particle in radians.

sizeXproperty 
public var sizeX:Number = 1

The size along the x axis of the particle.

sizeYproperty 
public var sizeY:Number = 1

The size along the y axis of the particle.

xproperty 
public var x:Number = 0

The x position of the particle.

yproperty 
public var y:Number = 0

The y position of the particle.

zproperty 
public var z:Number = 0

The z position of the particle.

Constructor Detail
Particle3D()Constructor
public function Particle3D()

Creates a new Particle3D objects.

Method Detail
clone()method
public function clone():Particle3D

You must override this method to implement a custom particle.

Returns
Particle3D — 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 ).