Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent > API/Runtime/Engine/Components/UPrimitiveComponent/OverlapComponentWithResult
- UPrimitiveComponent::OverlapComponentWithResult()
- UClusterUnionComponent::OverlapComponentWithResult()
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 |
virtual bool OverlapComponentWithResult
(
const FVector & Pos,
const FQuat & Rot,
const FCollisionShape & CollisionShape,
TArray < FOverlapResult > & OutOverlap
) const
Remarks
Test the collision of the supplied shape at the supplied location, and determine if it overlaps this component. Also will return information about the overlap. true if PrimComp overlaps this component at the specified location/rotation
Parameters
| Name | Description |
|---|---|
| Pos | Location to place PrimComp geometry at |
| Rot | Rotation of PrimComp geometry |
| CollisionShape | Shape of collision of PrimComp geometry |
| OutOverlap | Additional information about what exactly was overlapped. |