UCharacterMovementComponent::GetPawnCapsuleExtent

Get the capsule extent for the Pawn owner, possibly reduced in size depending on ShrinkMode.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

FVector GetPawnCapsuleExtent
(
    const EShrinkCapsuleExtent ShrinkMode,
    const float CustomShrinkAmount
) const

Remarks

Get the capsule extent for the Pawn owner, possibly reduced in size depending on ShrinkMode.

Returns

The capsule extent of the Pawn owner, possibly reduced in size depending on ShrinkMode.

Parameters

Parameter

Description

ShrinkMode

Controls the way the capsule is resized.

CustomShrinkAmount

The amount to shrink the capsule, used only for ShrinkModes that specify custom.