Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/Recast
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include | #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
)
Remarks
Initializes a new heightfield.
See the rcConfig documentation for more information on the configuration parameters.
Parameters
| Name | Description |
|---|---|
| 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] |
See Also
rcAllocHeightfield