UCharacterMovementComponent::PerchRadiusThreshold
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteAdvancedDisplay
Description
Minimum distance a walkable surface's edge must be from the capsule's contact point for the character to be allowed to perch there rather than fall off.
Caveats & Gotchas
- • AdvancedDisplay property — hidden from the default Details panel; enable 'Show Advanced' to edit it in the editor.
- • Characters within MaxStepHeight of a walkable surface below will not fall off regardless of this threshold, since the step-up logic takes over first.
Signature
float PerchRadiusThreshold Example
Tighten perch tolerance near ledges C++
GetCharacterMovement()->PerchRadiusThreshold = 2.f; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?