Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCapsuleComponent
Description
Set the capsule radius. This is the unscaled radius, before component scale is applied. If this capsule collides, updates touching array for owner actor.
| Name | SetCapsuleRadius |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/CapsuleComponent.h |
| Include Path | #include "Components/CapsuleComponent.h" |
UFUNCTION (BlueprintCallable, Category="Components|Capsule")
void SetCapsuleRadius
(
float Radius,
bool bUpdateOverlaps
)
Parameters
| Name | Remarks |
|---|---|
| Radius | : radius of end-cap hemispheres and center cylinder. |
| bUpdateOverlaps | if true and this shape is registered and collides, updates touching array for owner actor. |