UPrimitiveComponent::ComponentOverlapComponent

Test the collision of the supplied component at the supplied location/rotation, and determine if it overlaps this component.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Components/PrimitiveComponent.h"

Syntax

bool ComponentOverlapComponent
(
    class UPrimitiveComponent * PrimComp,
    const FVector Pos,
    const FQuat & Rot,
    const FCollisionQueryParams & Params
)

Remarks

Test the collision of the supplied component at the supplied location/rotation, and determine if it overlaps this component.

This overload taking rotation as a FQuat is slightly faster than the version using FRotator.

This simply calls the virtual ComponentOverlapComponentImpl() which can be overridden to implement custom behavior.

Returns

true if PrimComp overlaps this component at the specified location/rotation

Parameters

Parameter

Description

PrimComp

Component to use geometry from to test against this component. Transform of this component is ignored.

Pos

Location to place PrimComp geometry at

Rot

Rotation to place PrimComp geometry at

Params

Parameter for trace. TraceTag is only used.

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