mwg API
    Preparing search index...

    Interface CapsuleGridMoveOptions

    Inputs to resolveCapsuleAgainstGrid; tileSize (default 1) and shape must match the grid the heights were built from.

    interface CapsuleGridMoveOptions {
        heights: ReadonlyMap<string, number>;
        maxStepUp?: number;
        shape: GridShape3D;
        steps?: number;
        tileSize?: number;
    }
    Index
    heights: ReadonlyMap<string, number>

    from buildHeightIndex

    maxStepUp?: number

    the largest per-cell height difference (grid-height units, not world units) a capsule can step up or down without being blocked; 0 only allows level ground

    steps?: number

    positions sampled along the (x, z) segment; higher catches a thin column at high travel speed at the cost of more lookups

    tileSize?: number