Warnings
Will override the effect of rcFilterLedgeSpans. So if both filters are used, call rcFilterLedgeSpans after calling this filter.
Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
Include |
#include "Recast/Recast.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Recast/RecastFilter.cpp |
void rcFilterLowHangingWalkableObstacles
(
rcContext * ctx,
const int walkableClimb,
rcHeightfield & solid
)
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.
Parameter |
Description |
---|---|
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.) |