RealDocs

UKismetMathLibrary::Box_IsPointInside

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPureUFUNCTION

Description

Tests whether a world-space point lies strictly inside an axis-aligned bounding box. Points on the surface of the box (touching any face, edge, or corner) are not considered inside.

Caveats & Gotchas

  • Uses **open bounds** — a point exactly on the box surface returns false. This is the opposite convention from Box_Intersects, which uses closed bounds. Mixing them in the same logic leads to hard-to-diagnose edge-case bugs at boundaries.
  • The Box parameter must have IsValid=true. FBox objects constructed via the default no-argument constructor start with IsValid=false and undefined Min/Max values, producing wrong results.

Signature

static ENGINE_API bool Box_IsPointInside(const FBox& Box, const FVector& Point);

Parameters

Name Type Description Default
Box const FBox& The axis-aligned bounding box to test against.
Point const FVector& The world-space point to test.

Return Type

bool

Example

Check if a projectile impact point is inside a damage zone C++
FBox DamageZone = DamageVolume->GetComponentsBoundingBox();
FVector ImpactPoint = HitResult.ImpactPoint;
if (UKismetMathLibrary::Box_IsPointInside(DamageZone, ImpactPoint))
{
    ApplyAreaDamage(ImpactPoint);
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.