Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TMeshAABBTree3 > API/Runtime/GeometryCore/Spatial/TMeshAABBTree3/FindNearestHitTriangle
- IMeshSpatial::FindNearestHitTriangle()
- TMeshAABBTree3::FindNearestHitTriangle()
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/MeshAABBTree3.h |
| Include | #include "Spatial/MeshAABBTree3.h" |
virtual int FindNearestHitTriangle
&40;
const FRay3d & Ray,
const FQueryOptions & Options
&41; const
ID of triangle intersected by ray within MaxDistance, or InvalidID if not found
Parameters
| Name | Description |
|---|---|
| Ray | query ray |
| Options | Query options (ex. max distance) |