1

Crayon Physics is a wonderful game because of the real motion of all the objects. Gravity and collision are two very important things in that game. I know that is the reason why it costs $19.95

Are there equivalent open source projects? I'm very interested in the code and all the physical laws. Or do I still have to go to school for a few years and then write it my own....

Here is another example (in Flash) where there are nice physics. I don't know with which words I should search for a project like this.

Thanks

Martijn Courteaux
  • 67,591
  • 47
  • 198
  • 287

3 Answers3

4

There are lots of open source physics engines. For example, have a look at the engines listed in this wikipedia article.

Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
2

There are quite a few open-source physics libraries depending on what language you plan on using and if you need them for 3D/2D, but the best I know of are bullet for 3D and Box2D for 2D

Radu Chivu
  • 1,057
  • 7
  • 17
  • you can always shoehorn a 3D engine into a 2D space with constraints, but I don't know about if it'd be as effective than a 2D only engine. – gtrak Aug 09 '10 at 21:41
2

Martijn, I'll bite.

Numpty Physics, (released open-source, GPL, here: http://numptyphysics.garage.maemo.org/ ) is a free game similar to Crayon Physics. It uses the Box2D physics engine (box2d.org) and has a built-in level editor.

In addition to the source code, you will also find binary packages for many popular operating systems.

Here's a shortcut to the code if you are impatient... 8)

https://garage.maemo.org/scm/?group_id=638

Hope that helps you out... -Alan

vizionary
  • 106
  • 2