Constructors
constructor
- new dtCrowd(): dtCrowd
Methods
addAgent
- addAgent(pos, params): number
Returns number
getAgent
- getAgent(idx): dtCrowdAgent
getAgentCount
- getAgentCount(): number
Returns number
getEditableAgent
- getEditableAgent(idx): dtCrowdAgent
getEditableFilter
- getEditableFilter(i): dtQueryFilter
getFilter
- getFilter(i): dtQueryFilter
getNavMeshQuery
- getNavMeshQuery(): dtNavMeshQuery
getObstacleAvoidanceParams
init
- init(maxAgents, maxAgentRadius, nav): boolean
Parameters
- maxAgents: number
- maxAgentRadius: number
- nav: dtNavMesh
Returns boolean
removeAgent
- removeAgent(idx): void
Returns void
requestMoveTarget
- requestMoveTarget(idx, ref, pos): boolean
Parameters
- idx: number
- ref: number
- pos: readonly number[]
Returns boolean
requestMoveVelocity
- requestMoveVelocity(idx, vel): boolean
Parameters
- idx: number
- vel: readonly number[]
Returns boolean
resetMoveTarget
- resetMoveTarget(idx): boolean
Returns boolean
setObstacleAvoidanceParams
- setObstacleAvoidanceParams(idx, params): void
Returns void
update
- update(dt, debug): void
Returns void
updateAgentParameters
- updateAgentParameters(idx, params): void
Returns void