Перейти к основному содержанию

Particles.ParticleSubEmitter

Sub-emitters describe how specific particle can emit other particles, according to some events, that may happen to it. Mostly for internal use, put sub-emitters descriptors into emitters.

Index

Constructors

constructor

Methods

setKeepEmitter

  • setKeepEmitter(keepEmitter: boolean): void
  • More about capabilities

    In this case we are talking about emitters, not about sub-emitters.


    Parameters

    • keepEmitter: boolean

      If true, the new particle will save the emitter that was used for it's creation if it had been.

    Returns void

setKeepVelocity

  • setKeepVelocity(keepVelocity: boolean): void
  • Parameters

    • keepVelocity: boolean

      If true, the new particle will have the velocity of the particle, that calls the sub-emitter, at the time of invocation; default is false

    Returns void

setRandomVelocity

  • setRandomVelocity(maxRandomVelocity: number): void
  • Emitted particles will receive random initial speed.


    Parameters

    • maxRandomVelocity: number

    Returns void