Options
All
  • Public
  • Public/Protected
  • All
Menu

Each spawned particle has this component attached to it automatically.

Hierarchy

  • Particle

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Particle(time?: number, lifetime?: number): Particle
  • Parameters

    • Optional time: number
    • Optional lifetime: number

    Returns Particle

Properties

lifetime

lifetime: number

The maximum lifetime of this particle, in seconds.

time

time: number

How long this particle has existed, in seconds. From 0.0 to lifetime.

Static _size

_size: number

Methods

Static _fromPtr

  • Parameters

    Returns Particle

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc