RealDocs

UCharacterMovementComponent::GetMaxJumpHeightWithJumpTime

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

Description

Computes the maximum jump height including the extra height gained from holding the jump button for CharacterOwner->JumpMaxHoldTime.

Caveats & Gotchas

  • This is an approximation: when bApplyGravityWhileJumping is true, the actual achievable height is lower and depends on framerate/substepping, but the engine deliberately returns this cheaper estimate rather than simulating the jump.
  • Falls back to GetMaxJumpHeight() unchanged if CharacterOwner is null, since JumpMaxHoldTime lives on the Character, not the movement component.

Signature

virtual float GetMaxJumpHeightWithJumpTime() const

Return Type

float

Example

Compare against GetMaxJumpHeight C++
const float MinHeight = GetCharacterMovement()->GetMaxJumpHeight();
const float MaxHeight = GetCharacterMovement()->GetMaxJumpHeightWithJumpTime();
UE_LOG(LogTemp, Log, TEXT("Jump height range: %.1f - %.1f"), MinHeight, MaxHeight);

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.