Kinda yoinked both the thumbnail and title from Kavan, but hey lets just call it heavily inspired.
In this video, I used the Barnes-Hut algorithm to simulate 100k particles with both gravitational attractions and collisions.
Heavily Inspired by:
How to make HUGE N-Body Simulations (N=1,000,000+) https://youtu.be/nZHjD3cI-EU?si=ok8ecgUtEhXpAxVE
Github: https://github.com/TheSandwichCoder/GravSim
Since you are already here, you might as well subscribe...