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

Creates a compact open heightfield from a solid 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 static CompactHeightfield Build(
	BuildContext context,
	Heightfield sourceField,
	int walkableHeight,
	int walkableStep
)
Public Shared Function Build ( _
	context As BuildContext, _
	sourceField As Heightfield, _
	walkableHeight As Integer, _
	walkableStep As Integer _
) As CompactHeightfield
public:
static CompactHeightfield^ Build(
	BuildContext^ context, 
	Heightfield^ sourceField, 
	int walkableHeight, 
	int walkableStep
)

Parameters

context
BuildContext
The context to use duing the operation.
sourceField
Heightfield
The solid heighfield to derive the compact heightfield from.
walkableHeight
Int32
The minimum floor to ceiling height that is still considered walkable. [Limit: >= MinWalkableHeight]
walkableStep
Int32
The maximum floor to floor step that is still considered walkable.

Return Value

True if the operation completed successfully.

See Also