Simulating three body problem

The formula is \(F = G \frac{m_1 m_2}{r^2}\)
Gravity (g)
Length (l)
Weight (m)