I first tried to use Newtonian physics, but it was too inconsistent, and didn't have very consistent movements (especially at small distances.) In reality, the gravity strength curve actually looked like this. I'm glad it ended up okay!