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

    Class DonutEmitter

    Emits from a torus around z (Unity's Donut shape): particles start in its tube, or on the tube's surface, and head out from the tube's centre line.

    Implements

    Index
    arc: number

    Arc around z, in radians, that particles start in; 2π for the whole torus.

    donutRadius: number

    Radius of the tube.

    State the DonutEmitter.speed generator keeps.

    How the start point moves along the arc, see EmitterMode.

    radius: number

    Radius of the torus, from its centre to the centre line of its tube.

    Speed of the arc sweep in arcs per second, for the Loop and PingPong modes; sampled over the system's cycle.

    spread: number

    Snaps the start point along the arc to multiples of this fraction (Unity's Spread); 0 for none.

    thickness: number

    How far in from the tube's surface particles may start, as a fraction of its radius: 0 on the surface, 1 anywhere down to the centre line, evenly over the cross-section; clamped to [0, 1].

    transform?: ShapeTransform

    Optional local transform of the shape inside its particle system, applied by the shape itself at the end of initialize.

    type: string

    Always 'donut'.

    • Forgets the state the shape built up while emitting (the arc sweep position of Loop/PingPong shapes, generator memory), so a restarted system emits from the start of the arc again. Called by the particle system's restart().

      Returns void

    • Advances the arc sweep by delta seconds in the Loop and PingPong modes.

      Parameters

      Returns void