Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / findGridRouteWithLadder

Function: findGridRouteWithLadder()

findGridRouteWithLadder(units, openings, fixtures, origin, destination, opts?): LadderGridRouteResult

Defined in: packages/wayfinding/src/grid-relaxation.ts:485

units, openings, and fixtures must already be filtered to one level. Builds an uncached, throwaway BaseOccupancyGrid (no IMDFArchive object is available here to key a cache off) then runs the relaxation ladder against it — use findGridRouteWithLadderOnLevel to route on a cached base grid from a full IMDFArchive instead.

Parameters

units

IMDFFeature`<UnitProps>`[]

openings

IMDFFeature`<OpeningProps>`[]

fixtures

IMDFFeature`<ObstacleFootprintProps>`[]

origin

Position2D

destination

Position2D

opts?

GridLadderOptions = {}

Returns

LadderGridRouteResult

Released under commercial licensing.