A simple simulation of a pendulum using the SFML library
- simulates a pendulum
- shows acceleration vectors (gravity->red / centripetal->green / pendulum->blue)
- draws velocity graph for each pendulum
- Features
- styling system
- animation: interpolation between styles (default/hovered/clicked)
- Elements
- Button
- Slider
- Text
Software | SFML | CMake | MinGW |
---|---|---|---|
Version | 2.5.2 MinGW 64 | 3.22+ Msi | 10.3.0 tdm64-gcc |
Download | SFML | CMake | MinGW |
- Extract the zip file
- Shift the extractat "SFML-2.5.1" folder into the main folder
- start cmd inside the main folder and run:
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make
- start the .exe inside the build folder
- Set angle and lenght of pendulum with the Sliders.
- Spawn and reset with buttons