Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent > API/Runtime/Engine/Components/UPrimitiveComponent/ComponentOverlap-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
bool ComponentOverlapComponentWithResult
(
const class UPrimitiveComponent *const PrimComp,
const FVector & Pos,
const FQuat & Rot,
const FCollisionQueryParams & Params,
TArray < FOverlapResult > & OutOverlap
) const
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. true if PrimComp overlaps this component at the specified location/rotation
Parameters
| Name | 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. |
| OutOverlap | Also returns all the sub-overlaps within the component. |