rcBuildHeightfieldLayersChunky

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 rcBuildHeightfieldLayersChunky
(
    rcContext * ctx,
    rcCompactHeightfield & chf,
    const int borderSize,
    const int walkableHeight,
    const int chunkSize,
    rcHeightfieldLayerSet & lset
)

Remarks

Builds a layer set from the specified compact heightfield.

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]

chunkSize

Size of chunk of subregion [Units: vx]

lset

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

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