Orbix is a 2D physics engine built in Node.js for simulating the movements of celestial bodies like planets and satellites in space.
- Accurate 2D physics simulation
- Customizable celestial bodies with mass, initial velocity, and position
- Integration of gravitational forces
- Support for various time steps to control simulation precision
- Basic collision handling for elastic collisions
- Visualization tools to observe the simulated orbits
- Clone the repository:
https://github.com/MaxMady/OrbiX
- Install dependencies:
npm install
- Customize the simulation parameters in the
config.js
file. - Implement your desired celestial bodies and their initial conditions in the
main.js
file. - Run the simulation:
node .
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License.
Happy celestial body simulating!