Physics engines: Difference between revisions

From OLPC
Jump to navigation Jump to search
(+ speed test)
(Added a better chipmunk physics video link)
 
(11 intermediate revisions by 4 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]
! [http://www.iphone.r4m0n.net/?cat=9 iPhysics]
Line 11: Line 11:
| '''License'''
| '''License'''
| [http://www.linuxuser.at/elements/infos/chipmunk_license.txt MIT]
| [http://www.linuxuser.at/elements/infos/chipmunk_license.txt MIT]
| [https://box2d.svn.sourceforge.net/svnroot/box2d/License.txt zlib]
| [http://en.wikipedia.org/wiki/Zlib_license zlib]
| -
| -
| -
| -
|-
|-
| '''Source Code'''
| '''Source Code'''
| [http://files.slembcke.net/chipmunk/release/ChipmunkLatest.tgz yes]
| yes
| [http://switch.dl.sourceforge.net/sourceforge/box2d/Box2D_v2.0.0.zip yes]
| yes
| no
| no
| no
| no
Line 62: Line 62:
| ~ 300 kb
| ~ 300 kb
|-
|-
| '''Speed''' [[Physic_Engines/Speed_Tests|[1]]]
| '''[[Physic_Engines/Speed_Tests|Speed (Python)]]'''
| +++
| +++
| +++++
| +++++
Line 75: Line 75:
|-
|-
| '''Python Bindings'''
| '''Python Bindings'''
| [http://code.google.com/p/pymunk/ pymunk], [[Elements]]
| [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]
| -
| -
| -
| -
Line 82: Line 82:
| '''XO Compatible '''
| '''XO Compatible '''
| [http://www.linuxuser.at/elements/elements.xo yes]
| [http://www.linuxuser.at/elements/elements.xo yes]
| [http://lux.vu/olpc/physics-sdl.xo yes]
| [http://lux.vu/olpc/physics-sdl.xo yes] (outdated)
| not yet (only with OpenGL)
| not yet (only with OpenGL)
| -
| -
Line 94: Line 94:
| '''Screenshots'''
| '''Screenshots'''
| [http://www.slembcke.net/photos/v/programming/chipmunk/]
| [http://www.slembcke.net/photos/v/programming/chipmunk/]
| [http://www.box2d.org/screenshots.html]
| [http://www.box2d.org/screenshots.html] [http://code.google.com/p/pybox2d/wiki/Screenshots]
| [http://www.acc.umu.se/~emilk/screenshots/]
| [http://www.acc.umu.se/~emilk/screenshots/]
|
|
|-
|-
| '''Videos'''
| '''Videos'''
| [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=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=0H5g9VS0ENM]
| [http://www.youtube.com/watch?v=aQUWnVyXtns]
| [http://www.youtube.com/watch?v=aQUWnVyXtns]
|}
|}
[[Physic_Engines/Speed_Tests|Speed Tests]] made on March 17, 2008.
'''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 '''''
# http://phun.cs.umu.se/wiki/Download (Binaries for Windows and Linux)

''''' iPhysics '''''
# http://iphysics.r4m0n.net/index.php?title=Latest_Updates


[[category:software]]
[[category:software]]

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)