UKismetMathLibrary::IsPointInBox_Box
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Determines whether a point lies inside an axis-aligned FBox, including points exactly on the box surface. This is the FBox overload of IsPointInBox.
Caveats & Gotchas
- • In Blueprint this node is exposed as "Is Point In Box (Box)" via a DisplayName override, so it looks like a different function than IsPointInBox in the palette.
- • FBox must have valid Min/Max already set (IsValid) — an uninitialized or degenerate box gives undefined results.
- • The Box is treated as axis-aligned; if it was built from a rotated actor's bounds, transform Point into the box's local space first or use IsPointInBoxWithTransform_Box instead.
Signature
static bool IsPointInBox_Box(FVector Point, FBox Box) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Point | FVector | The point to test. | — |
| Box | FBox | The box to test against. | — |
Return Type
bool Example
Test against a component's bounding box C++
FBox Bounds = MyMeshComponent->Bounds.GetBox();
bool bInside = UKismetMathLibrary::IsPointInBox_Box(QueryPoint, Bounds); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?