Could you add rotation to everything? Like they all rotate around a random point around the center of the screen from the beginning. Without an impulse to another direction they are just nicely collapsing in the middle.
I would like to know what changes you need in this system to have moons get formed in stable orbits.
33
u/[deleted] Jan 14 '20
GitHub: https://github.com/phgilde/gravity_simulation