
Box2D is a free open source 2-dimensional physics simulator engine written in C by Erin Catto and published under the MIT license. It has been used in Crayon Physics Deluxe, Limbo, Rolando, Incredibots, Angry Birds, Tiny Wings, Shovel Knight, Transformice, Happy Wheels,, Noita, and many online Flash games, as well as iPhone, iPad and Android games using the Cocos2d or Moscrif game engine and Corona framework. It has also been used in the Unity game engine and is available as an extension for the Scratch-based programming languages TurboWarp (in its Extension Gallery website) and PenguinMod (bu
via Wikipedia infobox
~4 min read
Box2D is a free open source 2-dimensional physics simulator engine written in C by Erin Catto and published under the MIT license. It has been used in Crayon Physics Deluxe, Limbo, Rolando, Incredibots, Angry Birds, Tiny Wings, Shovel Knight, Transformice, Happy Wheels,, Noita, and many online Flash games, as well as iPhone, iPad and Android games using the Cocos2d or Moscrif game engine and Corona framework. It has also been used in the Unity game engine and is available as an extension for the Scratch-based programming languages TurboWarp (in its Extension Gallery website) and PenguinMod (built-in extension).
== History == Box2D was first released as "Box2D Lite", a demonstration engine to accompany a physics presentation given by Erin Catto at GDC 2006. On September 11, 2007, it was released as open source on SourceForge. On January 17, 2010, Box 2D moved the project to Google Code for hosting. On July 12, 2015, hosting was moved again, this time to GitHub.
The presets in CMakePresets.json give one build flow on every platform and are picked up automatically by Visual Studio, VS Code, and CLion (open the folder and choose a preset). From the command line: Windows: cmake --preset windows then cmake --build --preset windows-release Linux: cmake --preset linux-release then cmake --build --preset linux-release macOS: cmake --preset macos then cmake --build --preset macos-release Use the -debug build presets for a debug build (not recommended for the replay viewer). The presets use the default native toolchain (the installed Visual Studio on Windows, Make on Linux, Xcode on macOS), so no specific compiler version is required. Building for Visual Studio Install Visual Studio Run build vs2026.bat for Visual Studio 2026, or use the windows preset above for other versions Open and build the generated solution in the build folder Building for Linux Run build.sh from a bash shell Results are in the build sub-folder Building for Xcode mkdir build cd build cmake -G Xcode .. Open box2d.xcodeproj Select the samples scheme Build and run the samples Building and installing mkdir build cd build cmake .. cmake --build . --config Release cmake --install . (might need sudo) The samples app doubles as a viewer for Box2D recordings ( .b2rec files). Any preset above builds it. Pass a recording on the command line to open it directly: Windows: build bin Release samples.exe path to session.b2rec Linux: build/bin/samples path/to/session.b2rec macOS: build/bin/Release/samples path/to/session.b2rec The Box2D library and samples build and run on Windows, Linux, and Mac. You will need a compiler that supports C17 to build the Box2D library. You will need a compiler that supports C++20 to build the samples. Box2D uses SSE2 and Neon SIMD math to improve performance. This can be disabled by defining BOX2D DISABLE SIMD . Please do not submit pull requests. Instead, please file an issue for bugs or feature requests. For support, please visit the Discord server. Please file an issue or start a chat on discord. You can also use GitHub Discussions.
Excerpt from the source-code README · 4,784 chars · not written by Vinony
via Wikidata · CC0
via Wikidata sitelinks · CC0
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).