Are there any decent physics engines for Android? [closed]

狂风中的少年 提交于 2019-11-28 17:05:28

I don't know why Dalvik would reject classes unless they were obfuscated with some tool. Did you try recompiling Box2d from source?

The only other Java lib I've seen is http://www.cokeandcode.com/phys2d/

I am getting good results with the Java version of APE using Fixed Point math rather than floats.

http://www.cove.org/ape/

I have done an implementation of the APE engine now using (mostly) fixed point math and it is without garbage collection. Its a pretty nice engine to do stuff with constraints but seems less suited for really rigid bodies.

http://code.google.com/p/ape-physics-for-android/

You could also look into the NDK port of Chipmunk (download link on youtube page)

http://www.youtube.com/watch?v=_i_GFjfmLTc

sehugg

Also look @ Glaze which is optimized for arrays .. might not be a horrible port to Java from AS3 (it was ported to Haxe also)

http://code.google.com/p/glaze/

I am not sure, if jBox2D is really suitable for smartphones. I would rather look at J2ME engines, as they are highly optimized for performance- E.g: http://emini.at

Also you should have no problems with integration.

Libgdx has JBox2D built in and is cross platform (Android, Java Desktop, GWT Web) like Unity, tho it's free and open source.

I got it set up in 15 minutes and was creating physics bodies in no time. The Libgdx physics manual helps from there. Good luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!