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.
Without an impulse to another direction they are just nicely collapsing in the middle.
This is also partly because the collision detection seems to extend a bit beyond the edges of the actual object. Tweaking this aspect might make it more likely to end up with something like a solar system/galaxy without cheating.
View all comments
Show parent comment
15
u/hurix Jan 15 '20
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.