Barnes-Hut gravity simulator

July 2021

A Java/lwjge 3d big scale gravity simulator. The user can place bodies with different masses, generate galaxies or nebulae, and watch them interact with each other. The simulation is based on Barnes-Hut algorithm, which subdivides the space in an octree to speed up the calculations.