pygame is
Simple DirectMedia Layer is
Site Swing

pybox2d - 2.0.2b1

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:, bezier edges implemented using thin line segments)


Features a bit more Pythonic interface with lists/tuples usable in place of b2Vec2s, basic setuptools support, several major bug fixes, no more unexplained crashes during callbacks, several new testbed examples, and more.
For the full changelog, including some important code changes, see the development blog.

The testbed examples are no longer included in the installers, so please download them separately on the homepage.
Builds for other versions of Python (win32 2.4-2.6, OS X 2.5-2.6, Linux i686 2.4-2.5) are available on the homepage.


Home Page:


click to view original size


pybox2d - 2.3.2 - Jan 18, 2017
pybox2d - 2.3b0 - Nov 27, 2013
pybox2d - 2.0.2b1 - Feb 25, 2009
pybox2d - 2.0.2b0 - Oct 23, 2008
pybox2d - 2.0.1b4 - Jun 1, 2008
pybox2d - 2.0.1b3 - May 7, 2008
pybox2d - 2.0.1b2 - Apr 29, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

April 25, 2009 12:47am - Ken Lauer - nickname: (kne)
Francesco, there is no error in the output you pasted indicating it wasn't compiled. Please re-check the compilation steps on the wiki, and if you still experience problems file an issue report on the Google Code page.

Alternatively, you can try the eggs on the PyPi page ( ). If you have setuptools installed, try running: sudo easy_install box2d
April 24, 2009 3:02pm - Francesco Mastellone - nickname: (effeemme)
I can't get it to compile on Ubuntu 9.04 :/ This is one of the possible causes:

swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
swig -python -c++ -IBox2D -O -includeall -ignoremissing -w201 -outdir . -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c Box2D/Box2D_wrap.cpp -o build/temp.linux-x86_64-2.6/Box2D/Box2D_wrap.o -I.
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
March 1, 2009 12:12am - Xandar Kablandar - nickname: (eternalcheesecake) - 4/5
This just keeps getting better and better--a true asset to the pygame community.
October 25, 2008 12:08pm - Claudio Canepa - nickname: (claxo)
Impressive !!!
June 7, 2008 1:41am - Ken Lauer - nickname: (kne)
Added a source package that includes the C++ library code. Should make it much easier for Linux users to get it working.
June 3, 2008 5:28am - Ken Lauer - nickname: (kne)
Just ported a kinda fun new test from the C++ version (made by nimodo originally). Put into your testbed directory these two files from the SVN: testbed/ and testbed/ . And run :)
May 10, 2008 2:49am - Ken Lauer - nickname: (kne)
My apologies for those who have downloaded 2.0.1b3 already, but please re-download it, as I rushed it and a few files were missing from the release. Also be sure to check out the updated documentation on the Box2D wiki. It should help you get started with it.
April 30, 2008 12:05pm - RB[0] - nickname: (roebros)
err, support it ;)
April 30, 2008 12:04pm - RB[0] - nickname: (roebros)
I don't use it - but yes, I'd say 2.4 is widely enough in use that you should use it.
April 30, 2008 3:11am - Ken Lauer - nickname: (kne)
I hadn't even considered a Python 2.4-based release, but I guess if there's enough demand for it, I could. Is 2.4 still that widely in use?
April 30, 2008 2:16am - Claudio Canepa - nickname: (claxo)
Requires Python 2.5 (linkage to python25.dll).
I have seen the demo pictured here, and it was very responsive.
There will be a release for phyton 2.4 ? With 2.6 scheduled to september I dont want to begin the 'chase the binaries' right now.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)