engine
 
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
dtCrowdAgent结构体 参考

Represents an agent managed by a dtCrowd object. 更多...

#include <DetourCrowd.h>

Public 属性

unsigned char active
 1 if the agent is active, or 0 if the agent is in an unused slot in the agent pool.
 
dtLocalBoundary boundary
 The local boundary data for the agent.
 
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]
 
float cornerVerts [DT_CROWDAGENT_MAX_CORNERS *3]
 The local path corridor corners for the agent. (Staight path.) [(x, y, z) * ncorners]
 
dtPathCorridor corridor
 The path corridor the agent is using.
 
float desiredSpeed
 The desired speed.
 
float dvel [3]
 The desired velocity of the agent. [(x, y, z)]
 
int ncorners
 The number of corners.
 
dtCrowdNeighbour neis [DT_CROWDAGENT_MAX_NEIGHBOURS]
 The known neighbors of the agent.
 
int nneis
 The number of neighbors.
 
float npos [3]
 The current agent position. [(x, y, z)]
 
dtCrowdAgentParams params
 The agent's configuration parameters.
 
unsigned char state
 The type of mesh polygon the agent is traversing. (See: CrowdAgentState)
 
dtPathQueueRef targetPathqRef
 Path finder ref.
 
float targetPos [3]
 <Time since the agent's target was replanned. 更多...
 
dtPolyRef targetRef
 Target polyref of the movement request.
 
unsigned char targetReplan
 Flag indicating that the current path is being replanned.
 
unsigned char targetState
 State of the movement request.
 
float topologyOptTime
 Time since the agent's path corridor was optimized.
 
float vel [3]
 The actual velocity of the agent. [(x, y, z)]
 

详细描述

Represents an agent managed by a dtCrowd object.

类成员变量说明

◆ targetPos

float dtCrowdAgent::targetPos[3]

<Time since the agent's target was replanned.

Target position of the movement request (or velocity in case of DT_CROWDAGENT_TARGET_VELOCITY).


该结构体的文档由以下文件生成: