API

Class Particle

A particle represents one of the element emitted by a particle system. This is mainly define by its coordinates, direction, velocity and age.

Index
age: number = 0

The current age of the particle.

angle: number = 0

The current angle of the particle.

angularSpeed: number = 0

Defines how fast is the angle changing.

cellIndex: number = 0

Defines the cell index used by the particle to be rendered from a sprite.

color: Color4 = ...

The color of the particle.

colorDead: Color4 = ...

The color used when the end of life of the particle.

colorStep: Color4 = ...

The color change of the particle per step.

direction: Vector3 = ...

The world direction of the particle in the scene.

id: number

Unique ID of the particle

initialColor: Color4 = ...

The creation color of the particle.

lifeTime: number = 1.0

Defines how long will the life of the particle be.

metadata: any = null

Gets or sets an object used to store user defined information for the particle

particleSystem: ThinParticleSystem

The particle system the particle belongs to.

position: Vector3 = ...

The world position of the particle in the scene.

remapData: Vector4

The information required to support color remapping

scale: Vector2 = ...

The current scale of the particle.

size: number = 0

The current size of the particle.