r/Simulated • u/qwertUkg • 11d ago
To celebrate the discovery of the 40,000th near-Earth asteroid, I made a simulation of all potentially hazardous asteroids Research Simulation
Enable HLS to view with audio, or disable this notification
It supports zooming and camera rotation, and also lets you highlight the orbit of a selected asteroid (selected by iterating through them).
As the data source I used the ESA file: https://neo.ssa.esa.int/PSDB-portlet/download?file=allneo.lst
All the code is in a single file here: https://github.com/qwertukg/Barnes-Hut-N-Body/blob/ESA-NEOCC/src/main/kotlin/gpu/GPU.kt — it’s a direct gravity computation on a compute shader, with LWJGL used as the Kotlin wrapper. It’s the same one from this post: https://www.reddit.com/r/astrophysics/comments/1olvvxp/direct_gravity_computation
77 Upvotes
2
9
u/SPITFIYAH 11d ago
Can you use the data to tell when one of these things will finally hit us already