Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/FSparseDynamicOctree3 > API/Runtime/GeometryCore/Spatial/FSparseDynamicOctree3/ParallelOverlapAnyQuery
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/SparseDynamicOctree3.h |
| Include | #include "Spatial/SparseDynamicOctree3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Spatial/SparseDynamicOctree3.cpp |
int ParallelOverlapAnyQuery
(
const FAxisAlignedBox3d & ShapeBounds,
TFunctionRef < bool)> ObjectOverlapFn,
TFunctionRef < bool &)> BoundsOverlapFn
) const
Remarks
Find any overlap between a caller-defined query and any object ID. Returns the first overlap it finds. index of overlapping ObjectID or INDEX_NONE if no overlaps are found
Parameters
| Name | Description |
|---|---|
| ShapeBounds | Overall bounds of the custom query shape |
| ObjectOverlapFn | Custom function that indicates if the given ObjectID overlaps the query shape |
| BoundsOverlapFn | Optional custom function that indicates if the given bounding box overlaps the query shape, used to filter the octree search. Note the bounds overlap with ShapeBounds will already be called before calling this; only provide this if a more accurate overlap can be quickly checked. |