Skip to main content
POST
/
path
/
compute
compute A* path between two points
curl --request POST \
  --url http://localhost:3917/path/compute \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": [
    0,
    0,
    0
  ],
  "to": [
    10,
    0,
    5
  ]
}
'
{
  "count": 2,
  "ok": true,
  "waypoints": [
    [
      0,
      0,
      0
    ],
    [
      10,
      0,
      5
    ]
  ]
}

Body

application/json

Start and end positions as from and to, each [x, y, z]. Requires a navmesh (see /navmesh/generate).

The body is of type any.

Response

200 - application/json

Path result: the waypoint list and its length, or an error when no path exists.