UPrimitiveComponent::OverlapComponent

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

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::OverlapComponent()

USkeletalMeshComponent::OverlapComponent()

References

Module

Engine

Header

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

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/PrimitiveComponent.cpp

Syntax

virtual bool OverlapComponent
(
    const FVector & Pos,
    const FQuat & Rot,
    const FCollisionShape & CollisionShape
)

Remarks

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

Returns

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

Parameters

Parameter

Description

Pos

Location to place PrimComp geometry at

Rot

Rotation of PrimComp geometry

CollisionShape

Shape of collision of PrimComp geometry

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