Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you recommend a good physics engine which is easily portable between WebGL and other OpenGL ES implementations like in Android and iPhone?

I don't want a game engine. Only the physics part.

share|improve this question

closed as off-topic by Byte56 Jul 9 '13 at 16:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are about "which tech to use" are outside the scope of the site. For more information, see this meta post" – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

You're not going to find a portable solution between WebGL and Android/iOS. – stephelton Apr 28 '12 at 17:51
So which one did you chose? – Coyote Oct 13 '12 at 11:43
up vote 2 down vote accepted

For handheld devices the best option is to use a C/C++ physics API as processing power is quite limited.

Bullet physics is a very good 3D physics engine. It works on Android, iOS, PS3, Windows, Mac... it's portable. You can use it in 2D mode as well. It has been ported to javascript (compiled using emscripten).

Box 2D works very well for 2D physics. It's used in many games. Angry birds being the prime example. For javascript the most up to date version is box2dWeb.

There are other option. But these are the most popular and work well on mobile devices.

share|improve this answer

This probably has an answer somewhere, but if you want a good 2D portable physics engine Box2D is sort of the standard:

I have got it to work on Android (using the NDK as it is a C library) and it works fine on IOS. For webGL, everything runs in JavaScript, so you would need a port of Box2D, like:

For 3D, there is probably a huge list somewhere, bullet being fairly popular:

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.