Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Erodes the walkable area within the heightfield by the specified radius. Additionally, it will mark all spans that are too low (rcMarkLowAreas)
Basically, any spans that are closer to a boundary or obstruction than the specified radius are marked as unwalkable.
This method is usually called immediately after the heightfield has been built.
| Name | rcErodeWalkableAndLowAreas |
| 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/RecastArea.cpp |
bool rcErodeWalkableAndLowAreas
(
rcContext * ctx,
int radius,
unsigned int height,
unsigned char areaId,
unsigned char filterFlags,
rcCompactHeightfield & chf
)
True if the operation completed successfully.
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| radius | The radius of erosion. [Limits: 0 < value < 255] [Units: vx] |
| height | Height threshold [Units: vx] |
| areaId | The area id to apply [Limit: <= @RC_WALKABLE_AREA] |
| filterFlags | See: rcFilterLowAreaFlags |
| chf | The populated compact heightfield to erode. |
See Also
-
rcBuildCompactHeightfield
-
rcConfig::walkableRadius