Warning, this is a work in progress and all APIs are subject to changes! Nothing is stable yet.
Then you can install in this environment pyb2d
and its dependencies
mamba install pyb2d -c conda-forge
Or you can install it from the sources, you will first need to install dependencies
mamba install cmake python numpy -c conda-forge
Then you can compile the sources (replace $CONDA_PREFIX
with a custom installation
prefix if need be)
mkdir build && cd build
cmake .. -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib
make && make install
To try out pyb2d interactively in your web browser, just click on the binder link:
-
Liquidfun Integration
-
Pygame Integration
-
Jupyter Integration
This project originated 2015 with the goal to create python bindings for liquidfun. The original work can still be found here: https://github.com/DerThorsten/liquidfun/tree/master/liquidfun/Box2D/pybox2d