Class Particle
Hierarchy
- Particle
Index
Constructors
Properties
Methods
Constructors
constructor
-
Creates a new instance Particle
Parameters
-
particleSystem: ParticleSystem
the particle system the particle belongs to
Returns Particle
-
Properties
ageSearch playground for age
The current age of the particle.
angleSearch playground for angle
The current angle of the particle.
angular SpeedSearch playground for angularSpeed
Defines how fast is the angle changing.
cell IndexSearch playground for cellIndex
Defines the cell index used by the particle to be rendered from a sprite.
colorSearch playground for color
The color of the particle.
color StepSearch playground for colorStep
The color change of the particle per step.
directionSearch playground for direction
The world direction of the particle in the scene.
idSearch playground for id
Unique ID of the particle
life TimeSearch playground for lifeTime
Defines how long will the life of the particle be.
particle SystemSearch playground for particleSystem
The particle system the particle belongs to.
positionSearch playground for position
The world position of the particle in the scene.
remap DataSearch playground for remapData
The information required to support color remapping
scaleSearch playground for scale
The current scale of the particle.
sizeSearch playground for size
The current size of the particle.
Methods
copy ToSearch playground for copyTo
-
Copy the properties of particle to another one.
Parameters
-
other: Particle
the particle to copy the information to.
Returns void
-
update Cell IndexSearch playground for updateCellIndex
-
Defines how the sprite cell index is updated for the particle
Returns void
A particle represents one of the element emitted by a particle system. This is mainly define by its coordinates, direction, velocity and age.