pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
pybox2d

pybox2d - 2.0.1b4

Ken Lauer (kne)

Tags:

Description

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

Screenshot


click to view original size

Releases

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

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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 ( http://pypi.python.org/pypi/Box2D/2.0.2b1 ). 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/TriangleMesh.py and testbed/test_BreakableBody.py . And run test_BreakableBody.py. :)
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)
Claudio,
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.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 25, 2014

Apr 21, 2014


Apr 19, 2014

Apr 16, 2014

Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014

Mar 14, 2014

Mar 13, 2014

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