babylon.quarks - v1.0.0
    Preparing search index...

    Interface EmissionState

    Where a system, or one sub emission, is in its emission: the cycle time, the burst and wave counters and the rate and distance carry-over. The system owns one; EmitSubParticleSystem keeps one per parent particle.

    interface EmissionState {
        burstIndex: number;
        burstParticleCount: number;
        burstParticleIndex: number;
        burstWaveIndex: number;
        burstWaves?: number[];
        inherit?: number;
        isBursting: boolean;
        particle?: Particle;
        previousWorldPos?: Vector3;
        time: number;
        travelDistance: number;
        waitEmiting: number;
    }
    Index
    burstIndex: number

    Bursts whose first wave has fired this loop, in time order.

    burstParticleCount: number

    Particles in the current burst wave.

    burstParticleIndex: number

    Index of the particle being spawned within the current burst wave; shapes in EmitterMode.Burst mode spread the wave by it.

    burstWaveIndex: number

    Wave of the burst being spawned right now (0 for its first wave).

    burstWaves?: number[]

    Waves fired so far this loop, per burst. Created by the system on first use, so states made elsewhere (sub emitters) can leave it out.

    inherit?: number

    Bit mask of the parent's properties the spawned particles take, see SubEmitterInheritMask.

    isBursting: boolean

    True while a burst wave spawns, false for rate and distance emission.

    particle?: Particle

    The particle a sub emission comes from, when it does; see EmitSubParticleSystem.inherit.

    previousWorldPos?: Vector3

    Where the emitter was at the previous step, for emission over distance; unset until the first step and after a restart.

    time: number

    Seconds into the current emission cycle (0 to duration).

    travelDistance: number

    How far the emitter has moved past its last emission-over-distance mark.

    waitEmiting: number

    Particles owed to rate and distance emission and not spawned yet; the fraction carries into the next step.