Talos docs

GET /navmesh

Since 0.6

GET /navmesh — ?bounds= and ?limit= window it; see crate::types::NavMeshQuery.

Plain text

Response

Response: NavMeshView

GET /navmesh response. Mirrors argus_nav::NavMeshSnapshot.

FieldTypePresentDescription
polysNavPolyView[]alwaysEvery walkable polygon, in world space.
areanumberalwaysTotal walkable surface in square metres.
boundsnumber[3][2]always[min, max] corners of the axis-aligned box enclosing the walkable polygons.
linksNavLinkView[]sometimesOff-mesh links baked into the mesh: the scene's navlink components, then any meta.nav.autoLinks generated. Omitted when there are none.

Response: NavLinkView

One off-mesh link, ends snapped onto the navmesh.

FieldTypePresentDescription
startnumber[3]alwaysWhere the crossing starts, on the navmesh.
endnumber[3]alwaysWhere it lands, on the navmesh.
kindNavLinkKindViewalwaysWhat crossing it takes.
bidirectionalbooleanalwaysCrossable from end to start too.
actionstringsometimesThe input action a player-driven traverser performs at start while moving to end. Absent: just move.
holdnumbersometimesSeconds to hold action down from start: the navlink's hold, 0.25 when it gives none. Absent when there is no action.
entitystringsometimesThe entity whose navlink component declared it. Absent for a generated link.
autobooleanalwaysGenerated by meta.nav.autoLinks rather than declared.

Response: NavLinkKindView

What crossing a link takes. Mirrors argus_nav::NavLinkKind.

ValueMeaning
jumpJump from the start to the end.
dropWalk off the start and fall to the end.
genericAnything else; action says what to do.

Response: NavPolyView

One navmesh polygon.

FieldTypePresentDescription
verticesnumber[3][]alwaysCorner positions, counter-clockwise.
areaintegeralwaysRecast area id.
flagsintegeralwaysDetour polygon flags.
areaM2numberalwaysThis polygon's surface in square metres.

Example

curl "http://127.0.0.1:7700/navmesh"

Start a server with argus run --serve; the port is --port (7700 by default). The request and response fields are in the query API guide.