Click anywhere to place an object Click again to specify its velocity, the object will move towards where you click. If you click in the same place the velocity will be zero.# Input the mass of your new object If you placed an object with no velocity you will be asked if you want to make it stationary, thereby fixing it in place. Type 1 to fix the object, 0 to leave it mobile.
After trawling scratch for a gravity simulator that could cope with an infinite* number of objects and failing, I decided to make my own and here it is. All object data is in lists so an infinite* number of objects are supported. I also designed it so that sprites could be attached to points to make it easy to repurpose for other uses. *Finite, but arbitrarily large Note that apart from the gravity, all physics simulation is awful. [There's an odd bug where static objects are ignored if there are more than 1 mobile object] *SPLAT!* bug squished :D