UKismetMathLibrary::IsPointInBoxWithTransform_Box
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Determines whether a world-space point lies inside a rotated box defined by an FBox in local space. This is the FBox overload of IsPointInBoxWithTransform.
Caveats & Gotchas
- • Exposed to Blueprint as "Is Point In Box With Transform (Box)" via a DisplayName meta tag.
- • Despite its name, the BoxExtent parameter is a full FBox (with Min/Max), not a half-extent vector — don't confuse it with the extent parameter of the non-_Box overload.
- • The FBox is interpreted in the box's local space, so it must already account for any pivot offset before BoxWorldTransform is applied.
Signature
static bool IsPointInBoxWithTransform_Box(FVector Point, const FTransform& BoxWorldTransform, FBox BoxExtent) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Point | FVector | The point to test, in world space. | — |
| BoxWorldTransform | const FTransform& | Component-to-world transform of the box, including its rotation. | — |
| BoxExtent | FBox | The box to test against, expressed in the box's local (component) space. | — |
Return Type
bool Example
Test a point against a rotated component's local bounds C++
FBox LocalBounds = MyComponent->CalcLocalBounds().GetBox();
bool bInside = UKismetMathLibrary::IsPointInBoxWithTransform_Box(WorldPoint, MyComponent->GetComponentTransform(), LocalBounds); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?