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
- Path
Cursor - Exact distance cursor for authored rail/path movement. Collision-driven actors should use WaypointFollower, so a blocked body cannot advance along a route.
- Path
Planner - Bounded FIFO planner. A ready result owns the scratch route until acknowledge; polling never discards it. Agent IDs/generations belong to the host.
- Path
Request - Route3
- Reusable piecewise-linear world-space route. Arc lengths are f64, repeated points are legal, and updates validate the complete input before mutation.
- Route
Projection - Nearest geometric observation from
Route3::project. This is not evidence of visiting checkpoints or completing laps. See that method for an example. - Route
Sample - Arc-distance sample from
Route3::sampleorRoute3::sample_progress. - Search
Progress - Search
Scratch - 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.
- Traversal
Link - Waypoint
Follower
Enums§
- Connectivity
- NavMesh
Diagnostic - First authoring failure from a checked mesh operation, with zero-based input
indices. Edge
eruns from vertexeto vertex(e + 1) % 3. - Navigation
Error - Request
Status - Search
Status - Traversal
Constants§
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.