RealDocs

UCharacterMovementComponent::MaxStepHeight

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

Description

Maximum height, in centimetres, of a ledge or step the character can walk up automatically without jumping.

Caveats & Gotchas

  • Characters won't fall off a ledge if the drop below them is within this height, so it also governs the maximum harmless step-down.
  • Setting this larger than the character's capsule half-height can produce odd step-up behaviour against tall obstacles that should otherwise block movement.
  • PerchRadiusThreshold and the perch-related properties add extra tolerance on top of this value near ledge edges.

Signature

float MaxStepHeight;

Example

Allow stepping over small obstacles C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
	MoveComp->MaxStepHeight = 45.0f;
}

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.