[This is preliminary documentation and is subject to change.]

Creates a new crowd manager.

Namespace: org.critterai.nav
Assembly: cai-nav (in cai-nav.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static CrowdManager Create(
	int maxAgents,
	float maxAgentRadius,
	Navmesh navmesh
)
Public Shared Function Create ( _
	maxAgents As Integer, _
	maxAgentRadius As Single, _
	navmesh As Navmesh _
) As CrowdManager
public:
static CrowdManager^ Create(
	int maxAgents, 
	float maxAgentRadius, 
	Navmesh^ navmesh
)

Parameters

maxAgents
Int32
The maximum number of agents that can be added to the manager.
maxAgentRadius
Single
The maximum allowed agent radius.
navmesh
Navmesh
The navigation mesh to use for path planning and steering related queries.

Return Value

A new crowd manager, or null on error.

See Also