Quadtree for quick nearest neighbour search of rvo agents.
More...
Quadtree for quick nearest neighbour search of rvo agents.
- See Also
- Pathfinding.RVO.Simulator
|
void | CalculateSpeeds () |
|
void | Clear () |
| Removes all agents from the tree.
|
|
void | DebugDraw () |
|
void | Insert (Agent agent) |
| Add a new agent to the tree.
|
|
void | Query (Vector3 p, float speed, float timeHorizon, float agentRadius, Agent agent) |
| Find all agents that could collide with an agent at position p within timeHorizon seconds.
|
|
void | SetBounds (Vector3 min, Vector3 max) |
| Set the bounding box of this quadtree.
|
|
Removes all agents from the tree.
void DebugDrawRec |
( |
int |
i, |
|
|
float |
xmin, |
|
|
float |
xmax, |
|
|
float |
ymin, |
|
|
float |
ymax, |
|
|
float |
zmin, |
|
|
float |
zmax |
|
) |
| |
|
private |
void Insert |
( |
Agent |
agent | ) |
|
Add a new agent to the tree.
- Warning
- Agents must not be added multiple times to the same tree
void Query |
( |
Vector3 |
p, |
|
|
float |
speed, |
|
|
float |
timeHorizon, |
|
|
float |
agentRadius, |
|
|
Agent |
agent |
|
) |
| |
Find all agents that could collide with an agent at position p within timeHorizon seconds.
This method will call agent.InsertAgentNeighbour for each agent found.
void SetBounds |
( |
Vector3 |
min, |
|
|
Vector3 |
max |
|
) |
| |
Set the bounding box of this quadtree.
This must be done before adding any agents to the tree and all agents must be inside the bounding box.
The documentation for this class was generated from the following file:
- /Users/arong/unity/a-pathfinding-project/Assets/AstarPathfindingProject/Core/RVO/RVOQuadtree.cs