RealDocs

UCharacterMovementComponent::GetPerchRadiusThreshold

function Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Returns the distance from the edge of the capsule within which the character is not allowed to perch on the edge of a surface.

Caveats & Gotchas

  • Clamps the PerchRadiusThreshold property to a minimum of 0 — a negative value configured on the component is silently treated as 0 rather than producing an error.
  • Only meaningful when the perch-checking logic in PhysFalling is evaluating whether the current landing spot is too close to an edge to stand on.

Signature

float GetPerchRadiusThreshold() const

Return Type

float

Example

Read the configured perch threshold C++
const float Threshold = GetCharacterMovement()->GetPerchRadiusThreshold();

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.