UPrimitiveComponent::K2_BoxOverlapComponent

Perform a box overlap against a single component as an AABB (No rotation)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp

Syntax

bool K2_BoxOverlapComponent
(
    FVector InBoxCentre,
    const FBox InBox,
    bool bTraceComplex,
    bool bShowTrace,
    bool bPersistentShowTrace,
    FVector & HitLocation,
    FVector & HitNormal,
    FName & BoneName,
    FHitResult & OutHit
)

Remarks

Perform a box overlap against a single component as an AABB (No rotation)

Parameters

Parameter

Description

InBoxCentre

The centre of the box to overlap with the component

InBox

Description of the box to use in the overlap

bTraceComplex

Whether or not to trace the complex physics representation or just the simple representation

bShowTrace

Whether or not to draw the trace in the world (for debugging)

bPersistentShowTrace

Whether or not to make the debugging draw stay in the world permanently

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss