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.

FormationDestinations (group, destination, formationMode, marginFactor=0.1f)
FormationPacked (currentPositions, destination, clearanceRadius, movementPlane)
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.

GetPointsAroundPointWorldFlexible (center, rotation, positions)
GetPointsOnNodes (nodes, count, clearanceRadius=0)

Returns randomly selected points on the specified nodes with each point being separated by clearanceRadius from each other.

GetReachableNodes (seed, tagMask=-1, filter=null)

Returns all nodes reachable from the seed node.

GetSpiralPoints (count, clearance)

Returns points in a spiral centered around the origin with a minimum clearance from other points.

Returns if there...

Public Enums

FormationMode
Public

Private/Protected Members

BFSMap
Private Static
BFSQueue
Private Static

Returns the XZ coordinate of the involute of circle.