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

    Class BoxEmitter

    A particle emitter that emits particles from a box centered on the emitter, all moving along +Z like Unity's Box shape. A box with no depth is a flat rectangle (Unity's Rectangle shape).

    Implements

    Index
    boxThickness: [number, number, number]

    How far Shell and Edge particles may sink into the box on each axis: half stay on the face and the rest sink evenly up to 2 × thickness of the half size.

    depth: number

    Size of the box along z.

    emitFrom: BoxEmitFrom

    Which part of the box particles start from, see BoxEmitFrom.

    height: number

    Size of the box along y.

    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 'box'.

    width: number

    Size of the box along x.

    • Starts p in, on or along the edges of the box, heading along +z at its start speed.

      Parameters

      Returns void

    • Does nothing: the box has no state.

      Parameters

      Returns void