How to Make "Gravitational Pull" Mechanic

Hey all,
I’d like to know how I can make a mechanic like this:
A character is on a round planet, like in the Object Gravity example. The character jumps, and if he’s close enough to another planet, that becomes the planet that he “gets stuck” on, or circles around. Here’s a picture:

Could I use the “distance between” event and change the gravitational pull that way? I’ve tried, but I don’t know how exactly to implement it. Help!

Maybe you may use an istant force, for all planets and the character, proportional to the inverse square of the distance (as in the real world :slight_smile:)

Like this:

You can add a “mass” for each planet too, for making it more attractive

3 Likes