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

Loads the heightfield's distance field data into the provided buffer.

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 bool GetDistanceData(
	ushort[] buffer
)
Public Function GetDistanceData ( _
	buffer As UShort() _
) As Boolean
public:
bool GetDistanceData(
	array<unsigned short>^ buffer
)

Parameters

buffer
array<UInt16>[]()[][]
The buffer to load the data into. [Size: >= SpanCount]

Return Value

True if the buffer was successfully loaded.

Remarks

This data is only available after the distance field has been built.

Each value represents the estimated distance of the span from the nearest boundary/obstruction. The index is the same as for the span data. E.g. span[i], distance[i]

See Also