Hi everyone again,
I would like to share with you this (very) little and simplified galaxies collision and interaction simulation code.
The galaxy model is based on the work of Alar and Juri Toomre, more specifically on the article “GALACTIC BRIDGES AND TAILS”, Toomre & Toomre, 1972.
https://articles.adsabs.harvard.edu/pdf/1972ApJ...178..623T
This is a piece of code that I’ve written many times in different languages, with different levels of complexity, but this time I wanted to try using the babylon.js glow effect and it’s… spectacular. I think there is a certain beauty in the generated patterns and the glow effect is the icing on the cake
Some features
- Random generation of position, speed, orientation and spin
- Camera rotation and zoom respect to the mass center
- Simulation speed control
- Collision/Orbit control
- Auto reset option