##What's New
This is a fork by Louis Langholtz of the Box2D physics engine.
General influences on this fork are:
- Unit testing;
- C++11 & C++14;
- C++ Core Guidelines;
- Effective Modern C++ by Scott Meyers; and
- Hardware capabilities of popular CPU architectures like the Intel-64 architecture.
NOTE: These sources make heavy use of the standard C++ library assert
macro to confirm code correctness.
As such, this library must be compiled with the NDEBUG
preprocessor macro enabled
to see any kind of performance.
###Features
Rounded corner collisions.
Capsule shapes.
More stable polygon stacking.
Shared shapes for reduced memory usage.
Increased runtime configurability.
Support for C++11's range-based loops and constant expressions.
Exported symbols all within the library namespace of box2d
.
Unit tested.
Initial support for fixed-point data types (in addition to float
and double
precision floating-point types)
as alternatives for RealNum
.
And more.
##About
Box2D is a 2D physics engine for games.
For help with Box2D, please visit http://www.box2d.org. There is a forum there where you may post your questions.
Please see Building.txt to learn how to build Box2D and run the testbed.
To run the demos, set "Testbed" as your startup project and press F5. Some test bed commands are:
- 'r' to reset the current test
- SPACE to launch a bomb
- arrow keys to pan
- 'x' and 'z' to zoom in/out
- use the mouse to click and drag objects
The main Box2D library is open source, but not open contribution. Please do not submit pull requests. Exceptions may be considered for build files and other items that are not part of the main library source. Thank you for your understanding.
Erin Catto http://www.box2d.org