Skip to main content

Module astar

Module astar 

Source

Structs§

AStarNode
AStarResult
Result of A* search.
CachedPath
A cached path entry.
Cluster
A cluster groups nearby grid cells for hierarchical planning.
ClusterId
FlowField
A flow field: precomputed for a single goal, steers any number of agents.
FlowFieldGrid
Flow field grid: builds and stores flow fields.
FlowVector
Flow direction per cell: an 8-directional flow vector.
GridMap
A 2-D uniform grid map for JPS and flow fields.
HierarchicalPathfinder
Hierarchical pathfinder: builds abstract cluster graph then refines.
JpsPathfinder
JPS pathfinder for uniform-cost grid maps (8-directional movement).
NodeId
PathCache
Cache of computed paths, invalidated when the grid changes.
SimpleGraph
Simple flat graph with node positions and weighted edges.
Vec2

Traits§

AStarGraph
Trait implemented by any graph that wants generic A*.

Functions§

astar_search
Run generic A* on any graph implementing AStarGraph.