rcBuildHeightfieldLayersMonotone

Builds a layer set from the specified compact heightfield.

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

Syntax

bool rcBuildHeightfieldLayersMonotone
(
    rcContext * ctx,
    rcCompactHeightfield & chf,
    const int borderSize,
    const int walkableHeight,
    rcHeightfieldLayerSet & lset
)

Remarks

Builds a layer set from the specified compact heightfield.

See the rcConfig documentation for more information on the configuration parameters.

Returns

True if the operation completed successfully.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

chf

A fully built compact heightfield.

borderSize

The size of the non-navigable border around the heightfield. [Limit: >=0] [Units: vx]

walkableHeight

Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx]

lset

The resulting layer set. (Must be pre-allocated.)

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