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

    Class HemisphereEmitter

    Emits from the half of a sphere on the +z side (Unity's Hemisphere shape): particles start inside it, or on its surface, and head straight out.

    Implements

    Index
    arc: number

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

    State the HemisphereEmitter.speed generator keeps.

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

    radius: number

    Radius of the hemisphere.

    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 surface particles may start, as a fraction of the radius: 0 on the surface, 1 anywhere down to the centre, evenly over the volume; 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 'hemisphere'.

    • Starts p at a point of the hemisphere, heading straight out at its start speed.

      Parameters

      Returns void

    • 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