Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FColliderMesh
Description
Find the TriangleID closest to P on the collider mesh, and distance to it, within distance MaxDist, or return InvalidID. Use GetSourceTriangleID() to map the TriangleID back to the source mesh. Use MeshQueries.TriangleDistance() to get more information.
| Name | FindNearestTriangle |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/ColliderMesh.h |
| Include Path | #include "DynamicMesh/ColliderMesh.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/ColliderMesh.cpp |
int FindNearestTriangle
(
const FVector3d & Point,
double & NearestDistSqrOut,
const IMeshSpatial::FQueryOptions & Options
) const