A basic Simple Pendulum Simluator made in C++ using SDL2.
- Variable Parameters (to be implemented)
- Trailing path lines
- Damping (to be implemented)
- GUI Controls (to be implemented)
- Draggable Pendulum (to be implemented)
Note: The parameter values are hard-coded until the CLI/GUI Controls gets implemented. The parameters are marked using a comment "
// Pendulum Parameters
" and can be customized from there.
The program requires CMake Version 3.7 or above to build and SDL2 to run.
Install the dependencies:
# In the root directory, create a directory named "lib" and clone the SDL2 repository
>> mkdir lib
>> cd lib
>> git clone https://github.com/libsdl-org/SDL.git -b SDL2
Build the project:
# In the root directory, create another directory named "build"
>> mkdir build
>> cd build
>> cmake ..
>> make
Execute:
# Run the executable
>> ./pendulum
To be updated later
MIT