Custom gravity for spaceship

Hello,

I’m trying to learn how to use gravity in my ship, so my player can walk around while another flies. From what I’ve found that I may need a gravity volume.

I’ve seen it done in custom movement projects (Advanced Movement: Gravity Volumes - YouTube) and even planet projects (Pawn - BP only - YouTube) but alas nobody seems to share.

Any help here would be greatly appreciated.

Maybe this custom gravity plugin will help you.

Thanks for the link. Unfortunately it’s all C++ which I don’t have any experience with. Also after testing the project it seems to only work on static objects, whereas I’m looking to have high speed ships moving about.

Easiest way to do so is to make a volume (actor with any shape component) that will change on overlap character state to swimming and any other actors put gravity to 0 or change other things if needed actor or character leaves the volume (overlap end event) reverse the changes.