是否有任何像样的物理引擎为Android? [英] Are there any decent physics engines for Android?

查看:143
本文介绍了是否有任何像样的物理引擎为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了看周围的物理引擎,这将很好地发挥了Android,但我只感到失望。

I've looked around for a physics engine that will play nicely with Android, but I've only been disappointed.

在性能方面,我听说jbox2d是最好的选择,但是(从我的理解)自从Android的SDK V1.0,Dalvik虚拟机的验证变得非常严格,并拒绝一些重点班和拒绝跑。使用DX工具(尽管我可能会使用不正确的工具)后,此问题仍然存在。

In terms of performance, I had heard that jbox2d was the best bet, but (from my understanding) ever since Android SDK V1.0, the Dalvik VM's verifier has become very strict and rejects some of the key classes and refuses to run. This problem persists after using the dx tool (although I might be using the tool improperly).

我知道AndroidBox2D移植项目的存在是为了优化jbox2d为Android垃圾收集器,但该项目页面上没有任何下载和GPL许可证并不像原来的Zlib许可证是有吸引力的。

I know that the AndroidBox2D porting project exists to optimize jbox2d for the Android garbage collector, but the project page doesn't have any downloads and the gpl license isn't as attractive as the zlib license of the original.

有没有人有任何建议,让jbox2d工作在Eclipse,或者对我应该在哪里开始寻找任何建议?

Does anyone have any tips for making jbox2d work in Eclipse, or have any recommendations for where I should start looking?

推荐答案

我不知道为什么的Dalvik会拒绝类,除非它们被混淆了一些工具。你尝试从源代码重新编译Box2D的?

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

唯一的其他Java的lib我所看到的是 HTTP://www.cokeand$c $ c.com / phys2d /

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

这篇关于是否有任何像样的物理引擎为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆