Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent > API/Runtime/Engine/Components/UPrimitiveComponent/SweepComponent
- UPrimitiveComponent::SweepComponent()
- UClusterUnionComponent::SweepComponent()
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 SweepComponent
(
FHitResult & OutHit,
const FVector Start,
const FVector End,
const FQuat & ShapeWorldRotation,
const FPhysicsGeometry & Geometry,
ECollisionChannel TraceChannel,
const struct FCollisionQueryParams & Params,
const struct FCollisionResponseParams & ResponseParams,
const struct FCollisionObjectQueryParams & ObjectParams
)
Remarks
Trace a shape against just this component. true if a hit is found
Parameters
| Name | Description |
|---|---|
| OutHit | Information about hit against this component, if true is returned |
| Start | Start location of the box |
| End | End location of the box |
| ShapeWorldRotation | The rotation applied to the collision shape in world space. |
| Geometry | Geometry to sweep with. |
| TraceChannel | The 'channel' that this query is in, used to determine which components to hit |
| Params | Additional parameters used for the trace |
| ResponseParam | ResponseContainer to be used for this trace |
| ObjectQueryParams | List of object types it's looking for |