A navigation mesh is a set of nodes covering a map area which represent branching pathways for the vehicle
to move from one location to another. This interface is used by classes which build navigation meshes.
Adds a node to this set and connects it with a number of neighboring nodes. If it is unable to find any
neighbors it will return 0. This might occur because the node is outside of the bounded area of the map.
node - The unconnected node to add to this mesh. Will be connected with others in the set.
neighbors - The maximum number of neighbors to attempt to connect with.
the number of neighboring nodes it was able to connect with
Removes a node from the set and removes any existing connections with its neighbors.
Note: There is no guarantee it is disconnecting from only nodes in this mesh. This method will disconnect
the node from all the nodes registered as neighbors.
node - The node to remove.
Returns true if the node was removed, false if it did not exist in this set.
Attempts to connect two nodes together by adding them as neighbors. If map data exists for this
NavigationMesh, it will check the map data to see if the connection intersects or comes too close
to map geometry. If it does they will not be connected and this method returns false.
Boolean value, true if the nodes were connected successfully, false if they could not connect.