Change Gravity Based on Platform

Hi all

I’m trying to implement a mechanic where if the player runs onto a platform, the gravity changes, so to speak, to suit the platform.

For instance, in the screenshot below, I’d like the player run along both platforms as the red arrows are pointing. When the player moves from the first arrow to the second arrow, I’d like the second platform to act as if it has the same gravity as the first platform.

What’s the best way to achieve this in UE4?

If any clarification is required, please let me know.

Cheers

Matt

Basically, the answer is:

  1. Buy an asset
  1. Write your own character

Thanks! I got the free plugin here and I tested it on the example levels: Directional & Planet Gravity in Code Plugins - UE Marketplace

It looks really cool and is what I am looking for, especially the functionality on the map called ‘SimpleGravityExample’.

The problem I face is that I have no idea where to start on using this plugin and implementing the functionality in my current game. Could you give me some pointers here or?

I would say, go here… :wink:

345127-screenshot-4.jpg