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

    Function getValueFromEmitterMode

    • Where along the shape's arc (0…1) the next particle starts, from the shape's EmitterMode (Unity's Arc Mode): random; Loop sweeps the arc and wraps (currentValue is the sweep position in arcs, any sign); PingPong sweeps back and forth, starting at the arc's start; Burst spreads a burst's particles evenly over the arc and places rate-emitted particles at random. A spread above 0 then snaps the result to multiples of it (Unity's Spread), so 0.25 emits from four points. The result is always within 0…1.

      Parameters

      Returns number