Announcement

Collapse
No announcement yet.

How to create gravity inversion for player?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    Click image for larger version

Name:	4f646d97f0149b50144cf486c482f415.jpg
Views:	1
Size:	399.6 KB
ID:	1182355
    Click image for larger version

Name:	fe6fc0a99792e0dce796ac89e973224d.png
Views:	1
Size:	878.8 KB
ID:	1182354
    Click image for larger version

Name:	6da93673859e8f1b7a5476d95e044ca9.png
Views:	1
Size:	171.2 KB
ID:	1182353

    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!
    Attached Files

    #2
    Would love to know aswell! BUMP!

    Comment


      #3
      Check out this guys plugin: https://forums.unrealengine.com/show...ls-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.


      Here is a thread I started which might help you.
      https://forums.unrealengine.com/show...-along-surface

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

      Comment


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

        Comment


          #5
          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.

          Comment

          Working...
          X