rcFilterLedgeSpans

Marks spans that are ledges as not-walkable.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h

Include

#include "Recast/Recast.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Recast/RecastFilter.cpp

Syntax

void rcFilterLedgeSpans
(
    rcContext * ctx,
    const int walkableHeight,
    const int walkableClimb,
    rcHeightfield & solid
)

Remarks

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_

Parameters

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.)

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss