dtClosestPtPointTriangle

Derives the closest point on a triangle from the specified reference point.

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

void dtClosestPtPointTriangle
(
    float * closest,
    const float * p,
    const float * a,
    const float * b,
    const float * c
)

Remarks

Derives the closest point on a triangle from the specified reference point.

Parameters

Parameter

Description

closest

The closest point on the triangle.

p

The reference point from which to test. [(x, y, z)]

a

Vertex A of triangle ABC. [(x, y, z)]

b

Vertex B of triangle ABC. [(x, y, z)]

c

Vertex C of triangle ABC. [(x, y, z)]

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