Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Initializes a new heightfield.
See the rcConfig documentation for more information on the configuration parameters.
| Name | rcCreateHeightfield |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include Path | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/Recast.cpp |
bool rcCreateHeightfield
(
rcContext * ctx,
rcHeightfield & hf,
int width,
int height,
const rcReal * bmin,
const rcReal * bmax,
rcReal cs,
rcReal ch,
bool bAllocateTempSpanColumns
)
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| hf | The allocated heightfield to initialize. |
| width | The width of the field along the x-axis. [Limit: >= 0] [Units: vx] |
| height | The height of the field along the z-axis. [Limit: >= 0] [Units: vx] |
| bmin | The minimum bounds of the field's AABB. [(x, y, z)] [Units: wu] |
| bmax | The maximum bounds of the field's AABB. [(x, y, z)] [Units: wu] |
| cs | The xz-plane cell size to use for the field. [Limit: > 0] [Units: wu] |
| ch | The y-axis cell size to use for field. [Limit: > 0] [Units: wu] |
| bAllocateTempSpanColumns | Indicate if we need to allocate the heightfield's tempSpanColumns. |
See Also
-
rcAllocHeightfield