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

Creates a new heightfield object.

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 Heightfield Create(
	int width,
	int depth,
	Vector3 boundsMin,
	Vector3 boundsMax,
	float xzCellSize,
	float yCellSize
)
Public Shared Function Create ( _
	width As Integer, _
	depth As Integer, _
	boundsMin As Vector3, _
	boundsMax As Vector3, _
	xzCellSize As Single, _
	yCellSize As Single _
) As Heightfield
public:
static Heightfield^ Create(
	int width, 
	int depth, 
	Vector3 boundsMin, 
	Vector3 boundsMax, 
	float xzCellSize, 
	float yCellSize
)

Parameters

width
Int32
The width of the field. [Limit: >= 1] [Units: Cells]
depth
Int32
The depth of the field. [Limit: >= 1] [Units: Cells]
boundsMin
Vector3
The minimum bounds of the field's AABB. [Units: World]
boundsMax
Vector3
The maximum bounds of the field's AABB. [Units: World]
xzCellSize
Single
The xz-plane cell size. [Limit:>= MinCellSize] [Units: World]
yCellSize
Single
The y-axis span increments. [Limit:>= MinCellSize] [Units: World]

Return Value

The heightfield, or null on error.

See Also