A* Pathfinding Project
3.8
The A* Pathfinding Project for Unity 3D
|
Quadtree for quick nearest neighbour search of agents. More...
Quadtree for quick nearest neighbour search of agents.
Classes | |
struct | Node |
Public Member Functions | |
void | Clear () |
void | DebugDraw () |
int | GetNodeIndex () |
void | Insert (Agent agent) |
void | Query (Vector2 p, float radius, Agent agent) |
void | SetBounds (Rect r) |
Private Member Functions | |
void | DebugDrawRec (int i, Rect r) |
float | QueryRec (int i, Vector2 p, float radius, Agent agent, Rect r) |
Private Attributes | |
Rect | bounds |
int | filledNodes = 1 |
const int | LeafSize = 15 |
float | maxRadius = 0 |
Node[] | nodes = new Node[42] |
void Clear | ( | ) |
void DebugDraw | ( | ) |
|
private |
int GetNodeIndex | ( | ) |
void Insert | ( | Agent | agent | ) |
void Query | ( | Vector2 | p, |
float | radius, | ||
Agent | agent | ||
) |
|
private |
void SetBounds | ( | Rect | r | ) |
|
private |
|
private |
|
private |
|
private |