TMeshAABBTree3::FindNearestHitTriangle

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IMeshSpatial::FindNearestHitTriangle()

TMeshAABBTree3::FindNearestHitTriangle()

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/Spatial/MeshAABBTree3.h

Include

#include "Spatial/MeshAABBTree3.h"

Syntax

virtual int FindNearestHitTriangle
(
    const FRay3d & Ray,
    const FQueryOptions & Options
) const

Returns

ID of triangle intersected by ray within MaxDistance, or InvalidID if not found

Parameters

Parameter

Description

Ray

query ray

Options

Query options (ex. max distance)