Query the navigation mesh
navmesh_queryQuery the navigation mesh used by AI pathfinding to summarize faces, identify faces at positions, test route connectivity, check straight-line walkability, and inspect face groups.
Instructions
Read-only queries with the engine's own path finding (the one AI agents use) on the navigation mesh of the scene open in the editor, or of the running mission (needs the bridge): summary (face count, face ids with their face counts, CRC), at (the face under a position: index, id, island, center, open edges), path (whether two positions are connected, path length against the straight distance, corner points), line (whether a straight move from a position stays on the mesh), group (faces with one id: count and extent). Use mission action=walk to prove a route with a real agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | group: face id (face group index). | |
| to | No | path/line: end position. | |
| from | No | path/line: start position. | |
| action | No | Query (default summary). | |
| radius | No | path/line: agent radius in meters (default 0.3). | |
| position | No | at: position to look up. |