< CONTROL > [ Space ] (or double-click) to add balls (at current mouse position). < ABOUT > This is a simulation of Newton's law of universal gravitation, where the gravitational force is proportional to the product of masses and inversely proportional to the square of the radius.
The functionality of the original by @Ricky-Jan remains 100%. I just added some variables to make the indexes into the object data table a little more readable to me. (see inside) Oct. 30 - made it mobile-friendly by adding double-click recognition. See: https://scratch.mit.edu/projects/899958937 for a tutorial on creating the physics engine used here.