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

Gets data related to the neighbors in the vicinity of the agent.

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 int GetNeighbors(
	CrowdNeighbor[] buffer
)
Public Function GetNeighbors ( _
	buffer As CrowdNeighbor() _
) As Integer
public:
int GetNeighbors(
	array<CrowdNeighbor>^ buffer
)

Parameters

buffer
array<CrowdNeighbor>[]()[][]
A buffer to load with the neighbor data. [Length: >= MaxNeighbors]

Return Value

The number of neighbors in the buffer, or -1 on error.

Remarks

Only available after after a CrowdManager update.

See Also