Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Builds a layer set from the specified compact heightfield.
See the rcConfig documentation for more information on the configuration parameters.
| Name | rcBuildHeightfieldLayers |
| 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/RecastLayers.cpp |
bool rcBuildHeightfieldLayers
(
rcContext * ctx,
rcCompactHeightfield & chf,
const rcBorderSize borderSize,
const int walkableHeight,
rcHeightfieldLayerSet & lset
)
True if the operation completed successfully.
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| chf | A fully built compact heightfield. |
| borderSize | The size of the non-navigable border around the heightfield. [Limit: >=0] [Units: vx] |
| walkableHeight | Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx] |
| lset | The resulting layer set. (Must be pre-allocated.) |
See Also
-
rcAllocHeightfieldLayerSet