Particle implementation for trail-based particles.

Implements

Constructors

Properties

age: number = 0

Age of the particle.

color: Vector4 = ...

Color of the particle.

length: number = 100

Length of the trail.

life: number = 1

Life duration of the particle.

localPosition?: Vector3

Local position of the particle.

memory: never[] = []

the memory of the particle.

parentMatrix?: Matrix4

Parent matrix for transformation.

position: Vector3 = ...

Position of the particle.

previous: LinkedList<RecordState> = ...

Previous states 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

  • Resets the particle properties and clears the previous states.

    Returns void

  • Updates the particle state.

    Returns void