Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ComponentOverlapComponentWithResult
(
const UPrimitiveComponent*const PrimComp, |
Test the collision of the supplied component at the supplied location/rotation, and determine if it overlaps this component. | Components/PrimitiveComponent.h | |
bool ComponentOverlapComponentWithResult
(
const UPrimitiveComponent*const PrimComp, |
Components/PrimitiveComponent.h |
ComponentOverlapComponentWithResult(const class UPrimitiveComponent *const, const FVector &, const FQuat &, const FCollisionQueryParams &, TArray< FOverlapResult > &)
Description
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.
| Name | ComponentOverlapComponentWithResult |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
bool ComponentOverlapComponentWithResult
(
const class UPrimitiveComponent *const PrimComp,
const FVector & Pos,
const FQuat & Rot,
const FCollisionQueryParams & Params,
TArray < FOverlapResult > & OutOverlap
) const
true if PrimComp overlaps this component at the specified location/rotation
Parameters
| Name | Remarks |
|---|---|
| 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. |
ComponentOverlapComponentWithResult(const class UPrimitiveComponent *const, const FVector &, const FRotator &, const FCollisionQueryParams &, TArray< FOverlapResult > &)
| Name | ComponentOverlapComponentWithResult |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
bool ComponentOverlapComponentWithResult
(
const class UPrimitiveComponent *const PrimComp,
const FVector & Pos,
const FRotator & Rot,
const FCollisionQueryParams & Params,
TArray < FOverlapResult > & OutOverlap
) const