Physics engines: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (+ build instructions)
(Added a better chipmunk physics video link)
 
(25 intermediate revisions by 6 users not shown)
Line 4: Line 4:
{| class="wikitable"
{| class="wikitable"
!
!
! [http://wiki.slembcke.net/main/published/Chipmunk Chipmunk]
! [http://code.google.com/p/chipmunk-physics/ Chipmunk]
! [http://www.box2d.org Box2d]
! [http://www.box2d.org Box2D]
! [http://www.phun.at Phun]
! [http://www.phun.at Phun]
! [http://www.iphone.r4m0n.net/?cat=9 iPhysics]
|-
|-
| '''License'''
| '''License'''
| [http://www.linuxuser.at/elements/infos/chipmunk_license.txt MIT]
| [http://www.linuxuser.at/elements/infos/chipmunk_license.txt MIT]
| [http://en.wikipedia.org/wiki/Zlib_License zlib]
| [http://en.wikipedia.org/wiki/Zlib_license zlib]
| -
| Proprietary
| -
|-
| '''Source Code'''
| [http://files.slembcke.net/chipmunk/release/ChipmunkLatest.tgz yes]
| [http://switch.dl.sourceforge.net/sourceforge/box2d/Box2D_v2.0.0.zip yes]
| no
| no
|-
| '''Documentation'''
| [http://files.slembcke.net/chipmunk/chipmunk-docs.html]
| [http://www.box2d.org/manual.html]
| -
| -
|-
|-
| '''Forums'''
| '''Forums'''
Line 17: Line 31:
| [http://www.box2d.org/forum/]
| [http://www.box2d.org/forum/]
| [http://phun.cs.umu.se/forum]
| [http://phun.cs.umu.se/forum]
| -
|-
| '''Wiki'''
| -
| [http://www.box2d.org/wiki/]
| -
| -
|-
|-
| '''irc.freenode.net'''
| '''irc.freenode.net'''
| #pymunk
| #pymunk
| #box2d
| #box2d
| -
| -
| -
|-
|-
| '''Latest Release'''
| '''Latest Release'''
| March 08
| March 08
| March 08
| March 08
| March 08
Line 34: Line 57:
|-
|-
| '''Library Size'''
| '''Library Size'''
| 48 kb
| 41 kb
| 1.7 mb
| 165 kb
| ~ 1.5 mb
| ~ 1.5 mb
| ~ 300 kb
|-
| '''[[Physic_Engines/Speed_Tests|Speed (Python)]]'''
| +++
| +++++
| +++
| +++
|-
|-
| '''Platforms'''
| '''Platforms'''
| Linux, Windows, Mac
| All
| Linux, Windows, Mac
| All
| Linux, Windows
| All
| iPhone
|-
|-
| '''Python Bindings'''
| '''Python Bindings'''
| [http://code.google.com/p/pymunk/ pymunk]
| [http://code.google.com/p/pymunk/ pymunk]: [[Elements]]
| [http://code.google.com/p/pybox2d/ pybox2d]: [http://www.assembla.com/spaces/elements Elements]
| [http://www.box2d.org/forum/viewtopic.php?f=5&t=241 via SWIG]
| -
| -
| -
|-
|-
| '''XO Compatible '''
| '''XO Compatible '''
| [http://www.linuxuser.at/elements/elements.xo yes] (with max. 20 elements)
| [http://www.linuxuser.at/elements/elements.xo yes]
| [http://lux.vu/olpc/physics-sdl.xo yes] (outdated)
| probably (not yet tested)
| not yet (only with OpenGL)
| not yet (only with OpenGL)
| -
|-
|-
| '''Notes'''
| '''Notes'''
| Fast
| -
| Feature-Rich
| -
| Feature-Rich
| -
| [http://iphysics.r4m0n.net/index.php?title=Main_Page more infos]
|-
| '''Screenshots'''
| [http://www.slembcke.net/photos/v/programming/chipmunk/]
| [http://www.box2d.org/screenshots.html] [http://code.google.com/p/pybox2d/wiki/Screenshots]
| [http://www.acc.umu.se/~emilk/screenshots/]
|
|-
|-
| '''Videos'''

| [http://www.youtube.com/watch?v=z_Sx9N39KHk] [http://www.youtube.com/watch?v=b6HvIDt1VSU] [http://www.youtube.com/watch?v=Cx5GBMybxXw] [http://files.slembcke.net/chipmunk/movies]
|
| [http://www.youtube.com/watch?v=0H5g9VS0ENM]
| [http://www.youtube.com/watch?v=aQUWnVyXtns]
|}
|}
'''See also''': [[Physics_engines/Speed_tests|Speed tests]] (made on March 18, 2008)


== Download & Build Instructions ==
=== Chipmunk ===
# http://files.slembcke.net/chipmunk/release/ChipmunkLatest.tgz


=== Chipmunk, Python API & Examples ===
# http://www.linuxuser.at/elements/elements.zip


=== Box2d ===
# svn co https://box2d.svn.sourceforge.net/svnroot/box2d box2d
# Download and apply this patch: http://pippin.gimp.org/tmp/box2d-build-diff.txt
# run 'make'
If it fails with a suggestion to use the -fPIC flag, add it to Source/Makefile, line 13. So it looks like this:
CXXFLAGS= -g -O2 -fPIC


=== Phun ===
Binaries for Windows and Linux can be found here:
# http://phun.cs.umu.se/wiki/Download





Latest revision as of 17:45, 28 February 2011

This is a short comparison of 2d physics engines.

Chipmunk Box2D Phun iPhysics
License MIT zlib - -
Source Code yes yes no no
Documentation [1] [2] - -
Forums [3] [4] [5] -
Wiki - [6] - -
irc.freenode.net #pymunk #box2d - -
Latest Release March 08 March 08 March 08 March 08
Language C C++ C++
Library Size 41 kb 165 kb ~ 1.5 mb ~ 300 kb
Speed (Python) +++ +++++ +++ +++
Platforms Linux, Windows, Mac Linux, Windows, Mac Linux, Windows iPhone
Python Bindings pymunk: Elements pybox2d: Elements - -
XO Compatible yes yes (outdated) not yet (only with OpenGL) -
Notes - - - more infos
Screenshots [7] [8] [9] [10]
Videos [11] [12] [13] [14] [15] [16]

See also: Speed tests (made on March 18, 2008)