Skip to content

mart-codes-good/Gravity-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open GL n body gravity Simulator

A quick small C program to practice 3D graphics and to apply formulas to create computer simulations. This program's heavy lifting is mostly done by using the universal gravitation formula.

image

You can modify the code to have more bodies, but you need to hard code some features.

Here is a quick demo!

Screen.Recording.2025-10-15.164758.mp4

About

A gravity simulator I wrote in C using OpenGL and a custom physics.h library I built myself. I used an LLM to help me learn the basics of OpenGL and how to design and integrate my own libraries. This project was mainly a learning opportunity to understand how 3D graphics work and how I can implement them from scratch using notes going forwards.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages