2D Planet Gravity

I need some help, i just started using unity and im making a 2D planet type of game, basically what i want is when i walk to one of the edges, instead of falling into the void i want to be able to walk on the side of the cube/planet.

GIF

Hi, I think this video might help you - https://youtu.be/fy-LcFZTTZU