Creating "planet" gravity

Hi,

I’m trying to create planetary gravity, but so far I’ve not created anything even close to useful.

I want to have two or three “spheres”, and whichever your close to, you get attracted to. As you walk around it, it’s as if you were walking around a small planet, etc.

Anyone know of something to help? Thanks!

You could have something like when a rigidbody enter a trigger (a giant circular trigger), the Physics.gravity is changed to the middle of the planet.

I have a simple example showing a ball rolling along a cylinder. Feel free to take a look. :smile:

650809–23227–$Planet.unitypackage (41.8 KB)

1 Like