Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Checks whether the given bounding box A intersects this bounding box B.
This function assumes boxes have closed bounds, i.e. boxes with coincident borders on any edge will overlap.
| Name | Box_Intersects |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetMathLibrary.cpp |
UFUNCTION (BlueprintPure, Category="Math|Box", Meta=(DisplayName="Intersects (Box)"))
static bool Box_Intersects
(
const FBox & A,
const FBox & B
)
true if the boxes intersect, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| A | The bounding box to check intersection against |
| B | The bounding box to intersect with. |