๐ŸŒŒ Galaxy Simulation ๐Ÿš€

I developed an interactive simulation of a multi-body gravitational system. Despite its name, Galaxy Simulation, the project is not a literal galaxy model but rather a general N-body system governed solely by Newtonian gravity, with configurable initial velocities. The bodies are arranged in concentric, circular layers.

๐Ÿช Users can experiment with key physical parameters such as:

  • โš–๏ธ Gravitational constant

  • ๐ŸŒ Central mass (default: very large, acting as a dominant attractor or "black hole", but can be adjusted)

  • ๐ŸŒŸ Number of initial bodies

  • ๐Ÿ“ Layer density

  • ๐Ÿ’จ Initial velocity

  • ๐Ÿ”ง Epsilon (softening distance)

  • โฑ๏ธ ฮ”t (time step)

โœจ Dynamic features:

  • Expand or compress layers

  • Add or remove bodies at runtime

  • Return anytime to the settings screen

  • Real-time visualization of kinetic, potential, and angular momentum

  • In the two-galaxy mode, you can drag and reposition galaxy centers live, creating intergalactic interactions

๐ŸŒ  The result is a versatile platform for exploring celestial mechanics and emergent behaviors of gravitational systems — from simple two-body motion to complex galaxy-like structures.

๐Ÿ“š Educational value:
This simulation offers physics educators and learners a hands-on tool to illustrate:

  • Orbital motion

  • Conservation laws

  • The role of initial conditions in system evolution

By letting users manipulate parameters and instantly see the outcomes, the simulation helps bridge the gap between abstract equations and physical intuition.

๐Ÿ–ฅ๏ธ Developed in Godot 4.5.

Leave a comment

Log in with itch.io to leave a comment.