Box2D is a 2D physics engine for games.
Please do not submit pull requests with new features or core library changes. Instead, please file an issue first for discussion. For bugs, I prefer detailed bug reports over pull requests.
PATH
build.bat
from the command promptbuild.sh
from a bash shellYou can download and install Box2D using the vcpkg dependency manager:
The Box2D port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.
Note: vcpkg support is not provided by the Box2D project
You can use the CMake install feature to deploy the library to a central location that can be accessed using:
find_package(box2d REQUIRED)
target_link_libraries(mytarget PRIVATE box2d::box2d)
You can build and install the library and docs using this command sequence (requires Doxygen):
mkdir build
cd build
cmake -DBOX2D_BUILD_DOCS=ON ..
cmake --build .
cmake --build . --target INSTALL
On Windows this tries to install in Program Files
and thus requires admin privileges. Alternatively you can target another directory using something like this:
mkdir build
cd build
cmake -DBOX2D_BUILD_DOCS=ON -DCMAKE_INSTALL_PREFIX="C:/packages" ..
cmake --build .
cmake --build . --target INSTALL
Box2D is developed by Erin Catto, and uses the MIT license.
Support development of Box2D through Github Sponsors
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。