from buildHeightIndex
Optionalmaxthe 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
Optionalstepspositions sampled along the (x, z) segment; higher catches a thin column at high travel speed at the cost of more lookups
Optionaltile
Inputs to
resolveCapsuleAgainstGrid;tileSize(default 1) andshapemust match the grid the heights were built from.