Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Collision",
Meta=(DisplayName="Sphere Overlap Component", ScriptName="SphereOverlapComponent", bTraceComplex="true", bPersistentShowTrace="false", UnsafeDuringActorConstruction="true"))
bool K2_SphereOverlapComponent
(
FVector InSphereCentre,
float InSphereRadius,
bool bTraceComplex,
bool bShowTrace,
bool bPersistentShowTrace,
FVector & HitLocation,
FVector & HitNormal,
FName & BoneName,
FHitResult & OutHit
)
Remarks
Perform a sphere overlap against a single component
Parameters
| Name | Description |
|---|---|
| InSphereCentre | The centre of the sphere to overlap with the component |
| InSphereRadius | The Radius of the sphere to overlap with the component |
| bTraceComplex | Whether or not to trace the complex physics representation or just the simple representation |
| bShowTrace | Whether or not to draw the trace in the world (for debugging) |
| bPersistentShowTrace | Whether or not to make the debugging draw stay in the world permanently |