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

Configuration parameters for a crowd agent. 更多...

#include <DetourCrowd.h>

Public 属性

unsigned int avoidanceGroup
 [UE4] Groups flags attached to the agent
 
float avoidanceQueryMultiplier
 [UE4] Mutliplier for avoidance velocities
 
float collisionQueryRange
 Defines how close a collision element must be before it is considered for steering behaviors. [Limits: > 0] 更多...
 
unsigned char filter
 UE4: Id of navigation filter used by this agent [Limits: 0 <= value <= DT_CROWD_MAX_FILTERS]
 
unsigned int groupsToAvoid
 [UE4] Avoid agents when they group is matching mask
 
unsigned int groupsToIgnore
 [UE4] Don't avoid agents when they group is matching mask
 
float height
 Agent height. [Limit: > 0]
 
TSharedPtr< dtQuerySpecialLinkFilter > linkFilter
 UE4: special link filter used by this agent
 
float maxAcceleration
 Maximum allowed acceleration. [Limit: >= 0]
 
float maxSpeed
 Maximum allowed speed. [Limit: >= 0]
 
unsigned char obstacleAvoidanceType
 The index of the avoidance configuration to use for the agent. 更多...
 
float pathOptimizationRange
 The path visibility optimization range. [Limit: > 0] 更多...
 
float radius
 Agent radius. [Limit: >= 0]
 
float separationWeight
 How aggresive the agent manager should be at avoiding collisions with this agent. [Limit: >= 0] 更多...
 
unsigned short updateFlags
 Flags that impact steering behavior. (See: UpdateFlags)
 
void * userData
 User defined data attached to the agent.
 

详细描述

Configuration parameters for a crowd agent.

参见
dtCrowdAgent, dtCrowd::addAgent(), dtCrowd::updateAgentParameters()

类成员变量说明

◆ collisionQueryRange

dtCrowdAgentParams::collisionQueryRange

Defines how close a collision element must be before it is considered for steering behaviors. [Limits: > 0]

Collision elements include other agents and navigation mesh boundaries.

This value is often based on the agent radius and/or maximum speed. E.g. radius * 8

◆ obstacleAvoidanceType

dtCrowdAgentParams::obstacleAvoidanceType

The index of the avoidance configuration to use for the agent.

[Limits: 0 <= value <= DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS]

dtCrowd permits agents to use different avoidance configurations. This value is the index of the #dtObstacleAvoidanceParams within the crowd.

参见
dtObstacleAvoidanceParams, dtCrowd::setObstacleAvoidanceParams(), dtCrowd::getObstacleAvoidanceParams()

◆ pathOptimizationRange

dtCrowdAgentParams::pathOptimizationRange

The path visibility optimization range. [Limit: > 0]

Only applicalbe if updateFlags includes the DT_CROWD_OPTIMIZE_VIS flag.

This value is often based on the agent radius. E.g. radius * 30

参见
dtPathCorridor::optimizePathVisibility()

◆ separationWeight

dtCrowdAgentParams::separationWeight

How aggresive the agent manager should be at avoiding collisions with this agent. [Limit: >= 0]

A higher value will result in agents trying to stay farther away from each other at the cost of more difficult steering in tight spaces.


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