|
RavEngine
|
#include <DetourCrowd.h>
Public Attributes | |
| bool | active |
| True if the agent is active, false if the agent is in an unused slot in the agent pool. | |
| unsigned char | state |
| The type of mesh polygon the agent is traversing. (See: CrowdAgentState) | |
| bool | partial |
| True if the agent has valid path (targetState == DT_CROWDAGENT_TARGET_VALID) and the path does not lead to the requested position, else false. | |
| dtPathCorridor | corridor |
| The path corridor the agent is using. | |
| dtLocalBoundary | boundary |
| The local boundary data for the agent. | |
| float | topologyOptTime |
| Time since the agent's path corridor was optimized. | |
| dtCrowdNeighbour | neis [DT_CROWDAGENT_MAX_NEIGHBOURS] |
| The known neighbors of the agent. | |
| int | nneis |
| The number of neighbors. | |
| float | desiredSpeed |
| The desired speed. | |
| float | npos [3] |
| The current agent position. [(x, y, z)]. | |
| float | disp [3] |
| A temporary value used to accumulate agent displacement during iterative collision resolution. [(x, y, z)]. | |
| float | dvel [3] |
| The desired velocity of the agent. Based on the current path, calculated from scratch each frame. [(x, y, z)]. | |
| float | nvel [3] |
| The desired velocity adjusted by obstacle avoidance, calculated from scratch each frame. [(x, y, z)]. | |
| float | vel [3] |
| The actual velocity of the agent. The change from nvel -> vel is constrained by max acceleration. [(x, y, z)]. | |
| dtCrowdAgentParams | params |
| The agent's configuration parameters. | |
| float | cornerVerts [DT_CROWDAGENT_MAX_CORNERS *3] |
| The local path corridor corners for the agent. (Staight path.) [(x, y, z) * ncorners]. | |
| unsigned char | cornerFlags [DT_CROWDAGENT_MAX_CORNERS] |
| The local path corridor corner flags. (See: dtStraightPathFlags) [(flags) * ncorners]. | |
| dtPolyRef | cornerPolys [DT_CROWDAGENT_MAX_CORNERS] |
| The reference id of the polygon being entered at the corner. [(polyRef) * ncorners]. | |
| int | ncorners |
| The number of corners. | |
| unsigned char | targetState |
| State of the movement request. | |
| dtPolyRef | targetRef |
| Target polyref of the movement request. | |
| float | targetPos [3] |
| Target position of the movement request (or velocity in case of DT_CROWDAGENT_TARGET_VELOCITY). | |
| dtPathQueueRef | targetPathqRef |
| Path finder ref. | |
| bool | targetReplan |
| Flag indicating that the current path is being replanned. | |
| float | targetReplanTime |
Represents an agent managed by a dtCrowd object.