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