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

Builds the distance field for the heightfield.

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 BuildDistanceField(
	BuildContext context
)
Public Function BuildDistanceField ( _
	context As BuildContext _
) As Boolean
public:
bool BuildDistanceField(
	BuildContext^ context
)

Parameters

context
BuildContext
The context to use duing the operation.

Return Value

True if the operation completed successfully.

Remarks

This method must be called before attempting to build region data.

The distance data is avaiable via MaxDistance and GetDistanceData(array<UInt16>[]()[][]).

See Also