IsReachable
Whether a walk joins two points on the navigation mesh.
The same test as FindPath without the corners - a spawn point that can be walked out of, a goal that can be reached.
Syntax
Section titled “Syntax”IsReachable(x1, y1, z1, x2, y2, z2)| Parameter | Type | |
|---|---|---|
x1 |
number | the start |
y1 |
number | |
z1 |
number | |
x2 |
number | the end |
y2 |
number | |
z2 |
number |
Returns
Section titled “Returns”boolean - false off the mesh, unreachable, or without a navmesh
Example
Section titled “Example”if not IsReachable(spawnX, spawnY, spawnZ, goalX, goalY, goalZ) then goal = pickAnother() endSee also
Section titled “See also”FindPath · the The world - clock, weather, terrain, the navmesh, the geometry group of the index
