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 rcBuildCompactHeightfield
(
rcContext * ctx,
const int walkableHeight,
const int walkableClimb,
rcHeightfield & hf,
rcCompactHeightfield & chf
)
Builds a compact heightfield representing open space, from a heightfield representing solid space.
This is just the beginning of the process of fully building a compact heightfield. Various filters may be applied applied, then the distance field and regions built. E.g: rcBuildDistanceField and rcBuildRegions
See the rcConfig documentation for more information on the configuration parameters.
True if the operation completed successfully.
Parameter |
Description |
---|---|
ctx |
The build context to use during the operation. |
walkableHeight |
Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx] |
walkableClimb |
Maximum ledge height that is considered to still be traversable. [Limit: >=0] [Units: vx] |
hf |
The heightfield to be compacted. |
chf |
The resulting compact heightfield. (Must be pre-allocated.) |