Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/FDynamicMeshOctree3 > API/Runtime/GeometryCore/DynamicMesh/FDynamicMeshOctree3/FindNearestHitObject
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshOctree3.h |
| Include | #include "DynamicMesh/DynamicMeshOctree3.h" |
int32 FindNearestHitObject
&40;
const FRay3d & Ray,
TFunctionRef< bool(int)> IncludeTriangleIDFunc,
double MaxDistance
&41; const
Remarks
Find the nearest triangle of the mesh that is hit by the ray
Parameters
| Name | Description |
|---|---|
| IncludeTriangleIDFunc | predicate function that must return true for given TriangleID for it to be considered |