/Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSpatialFunctions.h
Finds the nearest intersection of a 3D ray with the mesh by using the Query BVH. Note, depending on the Ray Origin and Ray Direction, there is the possibility that the ray might not intersect with the Target Mesh. Should the ray miss, the HitResult.bHit will be false and the Outcome will be Not Found.
static [UDynamicMesh](API\Runtime\GeometryFramework\UDynamicMesh) * FindNearestRayIntersectionWithMesh ( [UDynamicMesh](API\Runtime\GeometryFramework\UDynamicMesh) * TargetMesh, const [FGeometryScriptDynamicMeshBVH](API\Plugins\GeometryScriptingCore\GeometryScript\FGeometryScriptDynamicMeshBVH) & QueryBVH, FVector RayOrigin, FVector RayDirection, [FGeometryScriptSpatialQueryOptions](API\Plugins\GeometryScriptingCore\GeometryScript\FGeometryScriptS-_5) Options, [FGeometryScriptRayHitResult](API\Plugins\GeometryScriptingCore\GeometryScript\FGeometryScriptRayHitResult) & HitResult, [EGeometryScriptSearchOutcomePins](API\Plugins\GeometryScriptingCore\GeometryScript\EGeometryScriptSearchOutcomePins) & Outcome, [UGeometryScriptDebug](API\Plugins\GeometryScriptingCore\GeometryScript\UGeometryScriptDebug) * Debug )