FDynamicMeshOctree3::FindNearestHitObject

Find the nearest triangle of the mesh that is hit by the ray

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshOctree3.h

Include

#include "DynamicMesh/DynamicMeshOctree3.h"

Syntax

int32 FindNearestHitObject
(
    const FRay3d & Ray,
    TFunctionRef< bool> IncludeTriangleIDFunc,
    double MaxDistance
) const

Remarks

Find the nearest triangle of the mesh that is hit by the ray

Parameters

Parameter

Description

IncludeTriangleIDFunc

predicate function that must return true for given TriangleID for it to be considered