Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/THierarchicalHashGrid2D
Description
Returns items that potentially touch the bounds. Operates on grid level, can have false positives. This can be faster than Query() for small query box sizes (i.e. max dimension CellSize*4) due to simpler logic.
| Name | QuerySmall |
| Type | function |
| Header File | /Engine/Source/Runtime/AIModule/Public/HierarchicalHashGrid2D.h |
| Include Path | #include "HierarchicalHashGrid2D.h" |
template<typename OutT>
void QuerySmall
(
const FBox & Bounds,
OutT & OutResults
) const
Parameters
| Name | Remarks |
|---|---|
| Bounds | Query bounding box. |
| OutResults | Result of the query, IDs of potentially overlapping items. |