A simple cloth simulation using verlet physics. Gravity, friction, and bounce are all accounted for.
- git (latest version) : All Oses(click here for instructions)
- cmake >= 3.7 : All OSes (click here for instructions)
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- Linux: make is installed by default on most Linux distros.
- Mac: install Xcode command line tools to get make (click here for instructions)
- Windows (click here for instructions)
- SDL >= 2.0: All OSes (click here for instructions)
- SDL_image >= 2.0.5: All OSes(click here for instructions)
- On Linux command line, enter
sudo apt-get install -y libsdl2-dev
- On Linux command line, enter
- gcc/g++ >= 5.4
- Linux: gcc/g++ is installed by default on most Linux distros.
- Mac: already received with make (install Xcode command line tools to get make)
- Windows: MinGW highly recommended (click here for instructions)
-
Clone this repository
-
Move to the top-level directory and clone this external repository:
git clone https://github.com/aminosbh/sdl2-cmake-modules.git
-
Create and move to a build directory in the top-level directory:
mkdir build && cd build
-
Compile:
cmake ..
followed bymake
-
Run:
./verlet_simulator