dtOverlapPolyPoly2D

Determines if the two convex polygons overlap on the xz-plane.

Windows
MacOS
Linux

References

Module

Navmesh

Header

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

Include

#include "Detour/DetourCommon.h"

Source

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

Syntax

bool dtOverlapPolyPoly2D
(
    const float * polya,
    const int npolya,
    const float * polyb,
    const int npolyb
)

Remarks

Determines if the two convex polygons overlap on the xz-plane.

All vertices are projected onto the xz-plane, so the y-values are ignored.

Returns

True if the two polygons overlap.

Parameters

Parameter

Description

polya

Polygon A vertices. [(x, y, z) * npolya]

npolya

The number of vertices in polygon A.

polyb

Polygon B vertices. [(x, y, z) * npolyb]

npolyb

The number of vertices in polygon B.

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