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 rcFilterLedgeSpans
(
rcContext * ctx,
const int walkableHeight,
const int walkableClimb,
rcHeightfield & solid
)
Marks spans that are ledges as not-walkable.
A ledge is a span with one or more neighbors whose maximum is further away than `walkableClimb_ from the current span's maximum. This method removes the impact of the overestimation of conservative voxelization so the resulting mesh will not have regions hanging in the air over ledges.
A span is a ledge if: `rcAbs(currentSpan.smax - neighborSpan.smax) > walkableClimb_
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] |
solid |
A fully built heightfield. (All spans have been added.) |