How to create gravity inversion for player?

Hello. I would like to make the trigger box invert the gravity for the player once they have passed through it. The goal is to create a tower with either side having it’s own gravity.



Hopefully the pictures give you an idea of what I’m trying to do. (The player actors you see don’t actually stick to the stairs. They’re just for demonstration.)
I see that many others have used C++ to create dynamic gravity. If you have any idea of where I should start, please let me know.

Thanks!

Would love to know aswell! BUMP!

1 Like

Check out this guys plugin: https://forums.unrealengine.com/showthread.php?85022-Blueprint-C-Advanced-Templates-Tools-amp-Plugins
Here it is on git hub:
https://github.com/mhousse1247/UE4-CustomGravityPlugin

It’s pretty **** good.

The current player movement component that comes with the third person bp will be a tricky task. Making the character flip upside down and move towards the top would be pretty easy using triggers and forces. The problem is getting the character “Stand/Stick” upside down on a surface that’s facing downward.

Here is a video of the issue. Obviously it’s not exactly the same as what you will come across but it shows how you can have a force that attracts the player to the centre of an object and orient the player to the face of the mesh but the player not attaching to the surface.
https:///watch?v=Q15v_wWQTHc

Here is a thread I started which might help you.
https://forums.unrealengine.com/showthread.php?110751-Orient-character-along-surface

The plugin I suggested Is definitely what you want. It comes with a bunch of custom gravity nodes.

Thanks! This is exactly what I need to get started.

Any suggestions on where to start with these plugins? I am very new to unreal engine. I know how to install a plugin but I’m not sure which I should use to build my multi-sided tower game.