rcCreateHeightfield

Initializes a new 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/Recast.cpp

Syntax

bool rcCreateHeightfield
(
    rcContext * ctx,
    rcHeightfield & hf,
    int width,
    int height,
    const float * bmin,
    const float * bmax,
    float cs,
    float ch
)

Remarks

Initializes a new heightfield.

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

Parameters

Parameter

Description

ctx

The build context to use during the operation.

hf

The allocated heightfield to initialize.

width

The width of the field along the x-axis. [Limit: >= 0] [Units: vx]

height

The height of the field along the z-axis. [Limit: >= 0] [Units: vx]

bmin

The minimum bounds of the field's AABB. [(x, y, z)] [Units: wu]

bmax

The maximum bounds of the field's AABB. [(x, y, z)] [Units: wu]

cs

The xz-plane cell size to use for the field. [Limit: > 0] [Units: wu]

ch

The y-axis cell size to use for field. [Limit: > 0] [Units: wu]

See Also

rcAllocHeightfield

rcHeightfield

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