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

Erodes the walkable area within the heightfield by the specified radius.

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 ErodeWalkableArea(
	BuildContext context,
	int radius
)
Public Function ErodeWalkableArea ( _
	context As BuildContext, _
	radius As Integer _
) As Boolean
public:
bool ErodeWalkableArea(
	BuildContext^ context, 
	int radius
)

Parameters

context
BuildContext
The context to use during the operation.
radius
Int32
The radius to apply. [Units: Spans]

Return Value

True if the operation completed successfully.

Remarks

Basically, any spans that are closer to a boundary or obstruction than the specified radius are marked as unwalkable.

This method is usually called immediately after the heightfield has been created.

See Also