Navigation
API > API/Runtime > API/Runtime/Navmesh
Warnings * Will override the effect of rcFilterLedgeSpans. So if both filters are used, call rcFilterLedgeSpans after calling this filter.
Description
Marks non-walkable spans as walkable if their maximum is within `walkableClimp_ of a walkable neighbor.
Allows the formation of walkable regions that will flow over low lying objects such as curbs, and up structures such as stairways.
Two neighboring spans are walkable if: `rcAbs(currentSpan.smax - neighborSpan.smax) < waklableClimb_
Will override the effect of rcFilterLedgeSpans. So if both filters are used, call rcFilterLedgeSpans after calling this filter.
| Name | rcFilterLowHangingWalkableObstacles |
| 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/RecastFilter.cpp |
void rcFilterLowHangingWalkableObstacles
(
rcContext * ctx,
const int walkableClimb,
rcHeightfield & solid
)
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| walkableClimb | Maximum ledge height that is considered to still be traversable. [Limit: >=0] [Units: vx] |
| solid | A fully built heightfield. (All spans have been added.) |