A* Pathfinding Project
4.0.7
The A* Pathfinding Project for Unity 3D
|
Contains useful functions for visualizing graphs. More...
Contains useful functions for visualizing graphs.
This class works a lot with the Node class, a useful function to get nodes is AstarPath.GetNearest.
Static Public Member Functions | |
static void | CreateNavmeshSurfaceVisualization (GraphNode[] nodes, Mesh mesh, System.Func< GraphNode, Color32 > color) |
Creates a mesh of the surfaces of group of nodes. | |
static void | CreateNavmeshSurfaceVisualization (GraphNode[] nodes, out List< Vector3 > vertices, out List< int > triangles, out List< Color32 > colors, System.Func< GraphNode, Color32 > color) |
Creates a mesh of the surfaces of the navmesh tile. | |
static int | GetSurface (GraphNode node, List< Vector3 > vertexBuffer, List< int > triangleBuffer) |
Vertices and triangles for the surface of a node. | |
|
static |
Creates a mesh of the surfaces of group of nodes.
nodes | The nodes to create a mesh of |
mesh | A mesh which will be OVERWRITTEN with the mesh representing the nodes' surface |
color | A delegate which should return a color |
|
static |
Creates a mesh of the surfaces of the navmesh tile.
nodes | The nodes to create a mesh of |
vertices | A list with all vertices of the mesh. |
triangles | An list of all triangles in the mesh. |
colors | An list of all colors in the mesh. |
color | A delegate which should return a color for each node |
|
static |
Vertices and triangles for the surface of a node.
The vertices and triangles will be added to the buffers in the same format as if they are going to be used for a Unity mesh.
Only GridNode and TriangleMeshNode (recast/navmesh graph) are supported since they are the only node types that have a welll defined surface.