Interface SubEmitterDescription

Custom particle's sub-emitter params object.

interface SubEmitterDescription {
    chance?: number;
    count?: number;
    data?: number;
    keepEmitter?: boolean;
    keepVelocity?: boolean;
    randomize?: number;
    type: number;
}

Properties

chance?: number

Triggering float chance from 0 to 1.

1
count?: number

Particles count for the single emit time.

1
data?: number

Additional data of the emitted particle.

0
keepEmitter?: boolean

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

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

keepVelocity?: boolean

If true, the new particle will have the velocity of the particle, that calls the sub-emitter, at the time of invocation.

false
randomize?: number

If this value is listed, emitted particles will receive random initial speed, that isn't more than value * sqrt(3).

type: number

Emitted particle's type numeric ID.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.