Class PathUtilities
Public
Contains useful functions for working with paths and nodes.
This class works a lot with the GraphNode class, a useful function to get nodes is AstarPath.GetNearest.
Inner Types
Public Static Methods
BFS
(seed, depth, tagMask=-1, filter=null)
Returns all nodes up to a given node-distance from the seed node.
GetPointsAroundPoint
(center, g, previousPoints, radius, clearanceRadius)
Will calculate a number of points around center which are on the graph and are separated by clearance from each other.
GetPointsAroundPointWorld
(p, g, previousPoints, radius, clearanceRadius)
Will calculate a number of points around p which are on the graph and are separated by clearance from each other.
GetPointsOnNodes
(nodes, count, clearanceRadius=0)
Returns randomly selected points on the specified nodes with each point being separated by clearanceRadius from each other.
GetSpiralPoints
(count, clearance)
Returns points in a spiral centered around the origin with a minimum clearance from other points.
Public Enums
FormationMode
Public
Private/Protected Members
BFSMap
Private
Static
BFSQueue
Private
Static