2-D physics simulation and rendering engine written in modern C++.
MIT License
Samarium is a 2d physics simulation library written in modern C++20.
git clone --depth 1 https://github.com/jjbel/samarium.git
python samarium/bootstrap.py
Dependency | URL | Documentation |
---|---|---|
python | https://www.python.org/downloads/ | |
git | https://git-scm.com/downloads/ | https://git-scm.com/docs/ |
A compiler supporting C++20 is required, namely GCC-11, Clang-13, or Visual C++ 2019.
Running boostrap.py
will install CMake and Conan, or you can do it yourself first.
To install the library locally:
conan download samarium/1.1.0@
or for the latest version
git clone --depth 1 https://github.com/jjbel/samarium.git
conan create ./samarium/ -b missing
For a fully-featured and self-contained example, run:
git clone --depth 1 https://github.com/jjbel/samarium_example.git .
cmake --preset default
cmake --build --preset default
For the optimal developing experience, use VSCode using the following extensions and tools
Documentation is located at Github Pages
Samarium is distributed under the MIT License.
Many thanks to the following wonderful libraries: