dtNavMesh::getPolyRefBase

Gets the polygon reference for the tile's base polygon.

Windows
MacOS
Linux

References

Module

Navmesh

Header

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

Include

#include "Detour/DetourNavMesh.h"

Source

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

Syntax

dtPolyRef getPolyRefBase
(
    const dtMeshTile * tile
) const

Remarks

Gets the polygon reference for the tile's base polygon.

Example use case: constdtPolyRefbase=navmesh->getPolyRefBase(tile);for(inti=0;iheader->polyCount;++i){constdtPoly*p=&tile->polys[i];constdtPolyRefref=base|(dtPolyRef)i;//Usethereferencetoaccessthepolygondata.}

Returns

The polygon reference for the base polygon in the specified tile.

Parameters

Parameter

Description

tile

The tile.

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