dtNavMeshQuery::getPolyHeight

Gets the height of the polygon at the provided position using the height detail.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h

Include

#include "Detour/DetourNavMeshQuery.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshQuery.cpp

Syntax

dtStatus getPolyHeight
(
    dtPolyRef ref,
    const float * pos,
    float * height
) const

Remarks

Gets the height of the polygon at the provided position using the height detail. (Most accurate.)

Will return #DT_FAILURE if the provided position is outside the xz-bounds of the polygon.

Returns

The status flags for the query.

Parameters

Parameter

Description

ref

The reference id of the polygon.

pos

A position within the xz-bounds of the polygon. [(x, y, z)]

height

The height at the surface of the polygon.

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