Box2D is a free open source 2-dimensional physics simulator engine written in C++ by Erin Catto and published under the zlib license
Box2D is a free open source 2-dimensional physics simulator engine written in C++ by Erin Catto and published under the zlib license.
The engine performs constrained rigid body simulation. It can simulate bodies composed of convex polygons, circles, and edge shapes. Bodies are joined together with joints and acted upon by forces. The engine also applies gravity, friction, and restitution.
Ports of Box2D exist for Java, ActionScript, C#, JavaScript, and D.