|
| | Crowd (int maxAgents, float maxAgentRadius, ref TiledNavMesh navMesh) |
| | Initializes a new instance of the Crowd class. More...
|
| |
|
ObstacleAvoidanceQuery.ObstacleAvoidanceParams | GetObstacleAvoidanceParams (int idx) |
| |
|
void | SetObstacleAvoidanceParams (int idx, ObstacleAvoidanceQuery.ObstacleAvoidanceParams parameters) |
| |
|
int | GetAgentCount () |
| |
|
Agent | GetAgent (int idx) |
| |
| int | AddAgent (Vector3 pos, AgentParams parameters) |
| | Add an agent to the crowd. More...
|
| |
| bool | RemoveAgent (int index) |
| | The agent is deactivated and will no longer be processed. It can still be reused later. More...
|
| |
| int | GetActiveAgents (Agent[] agents) |
| | The crowd contains active and inactive agents. Only add all the active agents to a separate array. More...
|
| |
| int | GetAgentIndex (Agent agent) |
| | Get the agent's index in the array More...
|
| |
| void | Update (float dt) |
| | Update the crowd pathfinding periodically More...
|
| |
| void | UpdateMoveRequest () |
| | Change the move requests for all the agents More...
|
| |
| void | UpdateTopologyOptimization (Agent[] agents, int numAgents, float dt) |
| | Reoptimize the path corridor for all agents More...
|
| |
| void | CheckPathValidity (Agent[] agents, int agentCount, float dt) |
| | Make sure that each agent is taking a valid path More...
|
| |
|
bool | OverOffmeshConnection (Agent ag, float radius) |
| |
| void | CalcSmoothSteerDirection (Agent ag, ref Vector3 dir) |
| | Calculate a vector based off of the map More...
|
| |
| void | CalcStraightSteerDirection (Agent ag, ref Vector3 dir) |
| | Calculate a straight vector to the destination More...
|
| |
| float | GetDistanceToGoal (Agent ag, float range) |
| | Find the crowd agent's distance to its goal More...
|
| |
| int | GetNeighbours (Vector3 pos, float height, float range, Agent skip, CrowdNeighbor[] result, int maxResult, Agent[] agents, ProximityGrid< Agent > grid) |
| | Get the crowd agent's neighbors. More...
|
| |
| int | AddNeighbour (Agent agent, float dist, CrowdNeighbor[] neis, int nneis, int maxNeis) |
| | Add a CrowdNeighbor to the array More...
|
| |
| int | AddToPathQueue (Agent newag, Agent[] agents, int numAgents, int maxAgents) |
| | Add the CrowdAgent to the path queue More...
|
| |
| int | AddToOptQueue (Agent newag, Agent[] agents, int numAgents, int maxAgents) |
| | Add the CrowdAgent to the optimization queue More...
|
| |
The Crowd class manages pathfinding for multiple agents simulatenously.
Definition at line 22 of file Crowd.cs.