UCharacterMovementComponent::MaxFlySpeed
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Maximum ground speed while the character is in Flying movement mode.
Caveats & Gotchas
- • Only applies when MovementMode is MOVE_Flying — call SetMovementMode(MOVE_Flying) for this cap to take effect.
- • Unlike MaxWalkSpeed, flying has no separate crouched variant; MaxFlySpeed is the single cap regardless of crouch state.
Signature
float MaxFlySpeed Example
Switch to flying and set its speed cap C++
GetCharacterMovement()->SetMovementMode(MOVE_Flying);
GetCharacterMovement()->MaxFlySpeed = 1200.f; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?