threejs-worldgen
    Preparing search index...

    Function mpmEmitPositions

    • World positions of an MPMEmit block: a lattice of Δx/2 spacing (8 particles per cell) clipped to the shape, jittered from seed and the particle serials starting at firstSerial.

      Parameters

      • spec: MPMEmit
      • cellSize: number
      • seed: string | number
      • firstSerial: number = 0
      • max: number = Infinity

      Returns Float32Array