Module |
|
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 float * bmin,
const float * bmax,
float cs,
float ch
)
Initializes a new heightfield.
See the rcConfig documentation for more information on the configuration parameters.
Parameter |
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] |
rcAllocHeightfield