I have been meaning to create an earth - moon simulation, my plan for the effects of gravity was to use the a negative value for the force field. But does that accurately follow gravity. Does the force decrease as 1/r^2?
If not, what is the best way to create that simulation