threejs-worldgen
    Preparing search index...

    Function nearestColumn

    • Index of the node column nearest local (x, z), clamped to the grid (where a particle reads the friction map).

      Parameters

      • nx: number
      • nz: number
      • dx: number
      • x: number
      • z: number

      Returns number