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

    Class GridEmitter

    Emits from the cells of a grid in the xy plane, centred on the origin and heading along +z: each particle starts at the centre of a cell, picked at random or in turn (see GridSampling), so a 2 × 2 grid of width 2 emits from x = ±0.5.

    Implements

    Index
    column: number

    Cells along x; read as a whole number of at least 1, and as 1 when not finite.

    height: number

    Height of the grid, along y.

    row: number

    Cells along y; read as a whole number of at least 1, and as 1 when not finite.

    sampling: GridSampling

    How each particle's cell is picked, see GridSampling.

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

    width: number

    Width of the grid, along x.

    • Starts p at the centre of a cell of the grid, picked by GridEmitter.sampling, heading along +z at its start speed.

      Parameters

      Returns void

    • Starts GridSampling.Sequential over at the first cell, so a restart replays the same cells.

      Returns void

    • Does nothing: the grid only moves on as it emits.

      Parameters

      Returns void