RealDocs

UCharacterMovementComponent::GetMaxAcceleration

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

Description

Returns the maximum acceleration for the current movement state.

Caveats & Gotchas

  • The base implementation ignores MovementMode entirely and just returns the MaxAcceleration property — override this if different modes need different acceleration limits (e.g. slower acceleration while swimming).
  • Used internally by CalcVelocity() and GetFallingLateralAcceleration(), so overriding it affects both ground and air movement.

Signature

virtual float GetMaxAcceleration() const

Return Type

float

Example

Read current acceleration cap C++
const float MaxAccel = GetCharacterMovement()->GetMaxAcceleration();
UE_LOG(LogTemp, Log, TEXT("Max acceleration: %.1f"), MaxAccel);

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.