rcErodeWalkableArea

Erodes the walkable area within the heightfield by the specified radius.

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/RecastArea.cpp

Syntax

bool rcErodeWalkableArea
(
    rcContext * ctx,
    int radius,
    rcCompactHeightfield & chf
)

Remarks

Erodes the walkable area within the heightfield by the specified radius.

Basically, any spans that are closer to a boundary or obstruction than the specified radius are marked as unwalkable.

This method is usually called immediately after the heightfield has been built.

Returns

True if the operation completed successfully.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

radius

The radius of erosion. [Limits: 0 < value < 255] [Units: vx]

chf

The populated compact heightfield to erode.

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