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

Gets neighbor connection data for the specified direction.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public int GetConnection(
	int direction
)
Public Function GetConnection ( _
	direction As Integer _
) As Integer
public:
int GetConnection(
	int direction
)

Parameters

direction
Int32
The direction. [Limits: 0 <= value < 4]

Return Value

The connection data for the specified direction, or NotConnected if there is no connection.

Remarks

Can be used to locate the neighbor span in the data structure. See the CompactHeightfield documentation for details.

See Also