Array where each element is an array of point-like objects that defines a polygon.
The amount (in pixels) that the navmesh has been shrunk around obstacles (a.k.a the amount obstacles have been expanded).
Cleanup method to remove references.
Find the closest point in the mesh to the given point. If the point is already in the mesh, this will give you that point. If the point is outside of the mesh, this will attempt to project this point into the mesh (up to the given maxAllowableDist). This returns an object with:
Get the NavPolys that are in this navmesh.
Find if the given point is within any of the polygons in the mesh.
Project a point onto a polygon in the shortest distance possible.
The point to project
The navigation polygon to test against
Generated using TypeDoc
The
NavMesh
class is the workhorse that represents a navigation mesh built from a series of polygons. Once built, the mesh can be asked for a path from one point to another point. Some internal terminology usage: