A* Pathfinding Project  3.6.1
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
ProceduralGridMover Class Reference

Public Member Functions

void Start ()
 
void UpdateGraph ()
 

Public Attributes

bool floodFill
 Flood fill the graph after updating.
 
Transform target
 
float updateDistance = 5
 

Private Member Functions

void Update ()
 
IEnumerator UpdateGraphCoroutine ()
 

Private Attributes

GridGraph graph
 Grid graph to update.
 
GridNode[] tmp
 

Member Function Documentation

void Start ( )
void Update ( )
private
void UpdateGraph ( )
IEnumerator UpdateGraphCoroutine ( )
private

Member Data Documentation

bool floodFill

Flood fill the graph after updating.

If this is set to false, areas of the graph will not be recalculated. Enable this only if the graph will only have a single area (i.e from all walkable nodes there is a valid path to every other walkable node). One case where this might be appropriate is a large outdoor area such as a forrest. If there are multiple areas in the graph and this is not enabled, pathfinding could fail later on.

Enabling it will make the graph updates faster.

GridGraph graph
private

Grid graph to update.

Transform target
GridNode [] tmp
private
float updateDistance = 5

The documentation for this class was generated from the following file: