UCharacterMovementComponent::GravityScale
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
Multiplier applied to gravity for this character. Values above 1 make gravity feel stronger; values below 1 (or negative) make it weaker or reversed.
Caveats & Gotchas
- • Affects only this character's simulation — it does not change the world's global gravity (UWorld::GetGravityZ), so other actors are unaffected.
- • Setting this to 0 does not stop the character from falling due to residual velocity; it only removes further gravitational acceleration.
Signature
float GravityScale Example
Floatier jump feel C++
GetCharacterMovement()->GravityScale = 0.85f; Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?