Class Particle
Constructors
constructor
-
Creates a new instance Particle
Parameters
- particleSystem: ThinParticleSystem
the particle system the particle belongs to
Returns Particle
- particleSystem: ThinParticleSystem
Properties
age
The current age of the particle.
angle
The current angle of the particle.
angular Speed
Defines how fast is the angle changing.
cell Index
Defines the cell index used by the particle to be rendered from a sprite.
color
The color of the particle.
color Dead
The color used when the end of life of the particle.
color Step
The color change of the particle per step.
direction
The world direction of the particle in the scene.
id
Unique ID of the particle
initial Color
The creation color of the particle.
life Time
Defines how long will the life of the particle be.
metadata
Gets or sets an object used to store user defined information for the particle
particle System
The particle system the particle belongs to.
position
The world position of the particle in the scene.
remap Data
The information required to support color remapping
scale
The current scale of the particle.
size
The current size of the particle.
A particle represents one of the element emitted by a particle system. This is mainly define by its coordinates, direction, velocity and age.