Pathing Module
Slope-aware A* pathing over a MapGrid with friendly-structure masking. Pure over inputs; never blocks beyond the configured budget.
Functions and values
| Function or value |
Description
|
|
Default budget: 50 ms wall clock, 50 000 cell expansions, slope cost multiplier 2.0.
|
Full Usage:
findPath grid moveType ownStructures start goal budget
Parameters:
MapGrid
-
Map data providing passability and slope information.
moveType : MoveType
-
Movement type governing passability thresholds.
ownStructures : OwnStructureFootprint seq
-
Friendly structure footprints to mask out of the passability grid.
start : float32 * float32 * float32
-
Start position in world coordinates (elmos).
goal : float32 * float32 * float32
-
Goal position in world coordinates (elmos).
budget : PathBudget
-
Wall-clock, expansion, and slope-weighting limits.
Returns: Result<Path, PathFailure>
Ok with a Path on success, or Error with a
PathFailure on invalid endpoints or no route.
|
Find a path from start to goal over grid for moveType, treating every cell covered by an ownStructures footprint as impassable.
|
|
|
Full Usage:
rasteriseFootprints grid ownStructures
Parameters:
MapGrid
ownStructures : OwnStructureFootprint seq
Returns: bool[,]
|
Rasterise a collection of structure footprints into a boolean grid overlay matching
the shape of
|
FSBarV1_Archived