Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
2  
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
add comment

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.

2 Answers

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
add comment

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

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: http://box2d-js.sourceforge.net/

For 3D, there is probably a huge list somewhere, bullet being fairly popular: http://bulletphysics.org/wordpress/

share|improve this answer
add comment

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