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

Adds an agent to the 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 CrowdAgent AddAgent(
	Vector3 position,
	CrowdAgentParams agentParams
)
Public Function AddAgent ( _
	position As Vector3, _
	agentParams As CrowdAgentParams _
) As CrowdAgent
public:
CrowdAgent^ AddAgent(
	Vector3 position, 
	CrowdAgentParams agentParams
)

Parameters

position
Vector3
The current position of the agent within the navigation mesh.
agentParams
CrowdAgentParams
The agent configuration.

Return Value

A reference to the agent object created by the manager, or null on error.

See Also