Skip to main content

pybox2d - 2.0.1b4

2D Physics Library for Python using Box2D


Ken Lauer
(kne)
Box2D is an open source physics engine written primarily for games. It's a purely 2D engine. Features include (as of 2.0.2) circles, up to 16-sided polygons, thin line segments, controllers (for buoyancy, gravity, etc.), basic breakable bodies, and pickling support. An easily extendable testbed for pygame and pyglet is available on the homepage.

For installing with the automated installer on Windows or OS X, see here.
For information on how to build from the source, see here.

(Screenshot: test_BezierEdges.py, bezier edges implemented using thin line segments)

Changes

2.0.1b4 (6/1/2008):

- Supports comparing shapes, joints, bodies. Doesn't require using userData anymore.
- Major clean ups with Box2D.i
- Added some docstrings to Box2D.i functions
- Added b2PolygonDef.checkValues(): checks the Polygon definition to see if upon creation it will cause an assertion to fail (raises ValueError)
- Wrapped shape.GetCoreVertices() like GetVertices() (for test_TimeOfImpact)
- test_Web fixed
- All stuff prettily printed by a semi-automated process now
- Updated test_Bridge.py to SVN rev 156
- Added many comments to test_main

Python 2.4 installer available on the homepage.
Source distribution added to make it easier for compiling in Linux.

Links

Home Page
http://code.google.com/p/pybox2d/
Source
http://pybox2d.googlecode.com/files/pyBox2D-2.0.1b4-Source.zip
Windows
http://pybox2d.googlecode.com/files/Box2D-2.0.1b4.win32-py2.5.exe

Releases

pybox2d 2.0.1b3 — 7 May, 2008

pybox2d 2.0.1b2 — 29 Apr, 2008

pybox2d 2.0.1b4 — 1 Jun, 2008

pybox2d 2.0.2b0 — 23 Oct, 2008

pybox2d 2.0.2b1 — 25 Feb, 2009

pybox2d 2.3b0 — 27 Nov, 2013

pybox2d 2.3.2 — 18 Jan, 2017

Pygame.org account Comments

  • Behzadi 2012-07-21 11:43:56

    Hello
    i want a version of pubox2d for py3.1.
    there is?

    Benjamin Ward 2013-12-30 11:39:01

    I wish. I'm thinking of spending some time to port this, since it would be sooooo useful

    c 2014-06-17 20:24:47

    There is for 3.2 http://www.lfd.uci.edu/~gohlke...