Navigation
API > API/Runtime > API/Runtime/Navmesh
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void rcFilterLedgeSpans
(
rcContext* ctx, |
Marks spans that are ledges as not-walkable. | Recast/Recast.h | |
void rcFilterLedgeSpans
(
rcContext* ctx, |
Marks spans that are ledges as not-walkable, by a number of y coords at a time. | Recast/Recast.h |
rcFilterLedgeSpans(rcContext *, const int, const int, const rcNeighborSlopeFilterMode, const rcReal, const rcReal, rcHeightfield &)
Description
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_
| Name | rcFilterLedgeSpans |
| 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 rcFilterLedgeSpans
(
rcContext * ctx,
const int walkableHeight,
const int walkableClimb,
const rcNeighborSlopeFilterMode neighborSlopeFilterMode,
const rcReal maxStepFromWalkableSlope,
const rcReal ch,
rcHeightfield & solid
)
Parameters
| Name | Remarks |
|---|---|
| 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] |
| neighborSlopeFilterMode | Change the way neighbors slope filtering is done. //UE |
| maxStepFromWalkableSlope | Maximum step height in relation to cs and the walkable angle. [Limit: >= 0] [Units: wu] //UE |
| ch | Cell height. [Limit: >= 0] [Units: wu] //UE |
| solid | A fully built heightfield. (All spans have been added.) |
See Also
rcFilterLedgeSpans(rcContext *, const int, const int, const rcNeighborSlopeFilterMode, const rcReal, const rcReal, const int, const int, rcHeightfield &)
Description
Marks spans that are ledges as not-walkable, by a number of y coords at a time.
| Name | rcFilterLedgeSpans |
| 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 rcFilterLedgeSpans
(
rcContext * ctx,
const int walkableHeight,
const int walkableClimb,
const rcNeighborSlopeFilterMode neighborSlopeFilterMode,
const rcReal maxStepFromWalkableSlope,
const rcReal ch,
const int yStart,
const int maxYProcess,
rcHeightfield & solid
)
Parameters
| Name | Remarks |
|---|---|
| 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] |
| neighborSlopeFilterMode | Change the way neighbors slope filtering is done. //UE |
| maxStepFromWalkableSlope | Maximum step height in relation to cs and the walkable angle. [Limit: >= 0] [Units: wu] //UE |
| ch | Cell height. [Limit: >= 0] [Units: wu] //UE |
| solid | A fully built heightfield. (All spans have been added.) |
| yStart | y coord to start at |
| maxYProcess | Max y coords to process (yStart + maxYProcess can be more than solid.height and will be capped to solid.height) |