Open source, pure Java physics / dynamics library [closed]

泄露秘密 提交于 2019-12-03 06:53:44

问题


I'm looking for a lightweight, pure Java physics engine to do some simulations for robotic motion control.

My requirements:

  • Rigid body physics
  • Joint constraints and forces
  • Convex object collision detection
  • Lightweight, pure Java so it can be embedded in my application
  • Ability to run simulations quickly
  • Handles 50-100 objects comfortably
  • Open source

Rather than reinventing the wheel, can you recommend any existing libraries that would fit the bill?

p.s. I have Googled already - I'm just keen to get honest opinions from people who have already used or implemented such things!


回答1:


I have used JBullet and JBox2D. They both are good libraries. JBox2D is more actively being changed, but JBullet has slightly larger base.

Just for fun, I was trying to simulate an old physics problem recently, for which I posted the results here.




回答2:


I would also use JBullet, though its been a couple of years since I last worked with it.



来源:https://stackoverflow.com/questions/3700567/open-source-pure-java-physics-dynamics-library

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