Module navigation

Source
Expand description

Deterministic weighted-grid A* and small 2D steering helpers.

Structs§

Cell
Grid
NavMesh
NavSearch
Incremental Dijkstra search. Each node scan and outgoing edge consumes a path work unit. A mesh edit invalidates the search, including an existing result.
NavTriangle
NavWaypoint
PathCursor
Exact distance cursor for authored rail/path movement. Collision-driven actors should use WaypointFollower, so a blocked body cannot advance along a route.
PathPlanner
Bounded FIFO planner. A ready result owns the scratch route until acknowledge; polling never discards it. Agent IDs/generations belong to the host.
PathRequest
Route3
Reusable piecewise-linear world-space route. Arc lengths are f64, repeated points are legal, and updates validate the complete input before mutation.
RouteProjection
Nearest geometric observation from Route3::project. This is not evidence of visiting checkpoints or completing laps. See that method for an example.
RouteSample
Arc-distance sample from Route3::sample or Route3::sample_progress.
SearchProgress
SearchScratch
Indexed binary heap: at most one open entry per cell. Scratch, heap and route storage are allocated once; decreases do not insert duplicate heap entries.
TraversalLink
WaypointFollower

Enums§

Connectivity
NavMeshDiagnostic
First authoring failure from a checked mesh operation, with zero-based input indices. Edge e runs from vertex e to vertex (e + 1) % 3.
NavigationError
RequestStatus
SearchStatus
Traversal

Constants§

MAX_ROUTE_POINTS
MAX_SEARCH_CELLS

Functions§

arrive
Desired velocity toward a target, slowing smoothly within the arrival radius. Invalid or non-positive parameters produce a stopped agent rather than NaNs.
separation
Repulsion from nearby peers, capped to max_speed; excludes coincident agents.