A detailed tutorial on World and Actor gravity. It is also a nice function that I prepared for you to use in both world and actor gravity.
https://dev.epicgames.com/community/learning/tutorials/yX6n/unreal-engine-world-gravity-and-actor-gravity-character-navigating-in-space-or-flying-without-gravity-subtitle