Particle implementation for sprite-based particle.

Implements

Constructors

Properties

age: number = 0

Age of the particle.

angularVelocity?: number | Quaternion

Angular velocity of the particle.

color: Vector4 = ...

Color of the particle.

life: number = 1

Life duration of the particle.

memory: never[] = []

the memory of the particle.

parentMatrix?: Matrix4

Parent matrix for transformation.

position: Vector3 = ...

Position of the particle.

rotation: number | Quaternion = 0

Rotation of the particle.

size: Vector3 = ...

Size of the particle.

speedModifier: number = 1

Speed modifier of the particle.

startColor: Vector4 = ...

Initial color of the particle.

startSize: Vector3 = ...

Initial size of the particle.

startSpeed: number = 0

Initial speed of the particle.

uvTile: number = 0

UV tile index.

velocity: Vector3 = ...

Velocity of the particle.

Accessors

  • get died(): boolean
  • Indicates if the particle has died.

    Returns boolean

Methods