Simulation of Newton's law of universal gravitation written in C + fixed function pipeline OpenGL.
mkdir build
cd build
cmake ..
make
Compilation is done using CMake. GLFW and OpenGL libraries are required to compile this program.
- GLFW: Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop.
- Dragging mouse creates new object
Z
: Decrease mass of the new objectX
: Increase mass of the new objectC
: Clear the objects arrayP
: Pause the simulationD
: Remove object closest to the mouse cursorA
: Slow down the simulationS
: Speed up the simulationESC
: Quit
This project is licensed under the MIT License - see the LICENSE.md file for details