eXpl0it3r / Box2D

Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Box2D for C++

Box2D is a 2D physics engine mostly targeted towards games.

For help regarding Box2D's features, please visit the official website, where you can also find the official forum. For problems related to this port, you may contact me at eXpl0it3r@sfml-dev.org or create an issue on the tracker.

About this Port

The main motivation behind this port is to provide a true C++ version of Box2D as opposed to the current C-like Box2D and make the CMake build system more flexible.

Notice: Since this port will be kept in sync with the Git repository, the master branch will receive forced pushes.

Here, I'll list the changes and the progress:

  • Restructure the directory layout
  • Update the CMake build system
  • Add a true namespace and remove the b2 prefixes
  • Replace preprocessor constants with C++ constants
  • Use C++ headers instead of C headers
  • Update the "Hello World" example
  • Update the "Testbed" example
  • Rebase onto the new Git repository
  • Adjust the build system to properly work with Visual Studios
  • Add Doxygen documentation generation to CMake

Hints for the Testbed

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

License

As the original Box2D this port is released under the zlib/libpng license, see the LICENSE file.

Credits

Erin Catto

http://www.box2d.org

https://github.com/erincatto/box2d

About

Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license.

License:zlib License


Languages

Language:C++ 91.4%Language:Objective-C++ 3.2%Language:C# 2.2%Language:CMake 1.6%Language:Objective-C 1.1%Language:C 0.5%