public class FourWayGridMesh
Generates a grid of nodes. Spacing between the grid nodes and clearance around map geometry can be specified.
This set can be generated once at the beginning of a user program, and the same node set can be used for all
Change the size of each grid square. NOTE: When grid space value is changed, this class does not regenerate
the navigation mesh until regenerate() is explicitly called.
gridSpace - The unit size of each grid square.
public void setClearance(float clearance)
Changes the safety zone between all nodes/connections and map geometry. This leaves a margin of error between
potential object collisions and the robot. NOTE: When clearance value is changed,
this class does not regenerate the navigation mesh until regenerate() is explicitly called.
clearance - The safety clearance between nodes/connections and map geometry.
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.
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.
Note: The most FourWayGridMesh can connect a node to is four. If you select a number larger than four, a maximum of
four neighbors will be connected with the node.
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.