@bereLaDD33

First set gravity to zero. Then you can google two formulas.

The first is "universal gravitation". It's a formula for calculating the force between two objects. Basically every tick you'd apply the force calculated by that equation toward another object.

The "G" value you'd tweak to be more of the scale that fits onscreen. You may also tweak the object masses.

The second formula is "orbit velocity". Basically take the angle from the moon to the earth, add or subtract 90, and set the velocity of the moon in that direction with the result of the formula.