Choosing a physics module¶
The right physics module depends on whether your game needs 2D or 3D simulation, the platforms you target and the APIs you want to use. The options below can be used in a Java project; check each project's compatibility, installation instructions and native dependencies before choosing one.
| Module | Dimensions | Overview |
|---|---|---|
| jme3-jbullet | 3D | The engine's Java Bullet integration, with rigid bodies, collision shapes and joints. |
| Minie | 3D | A community jMonkeyEngine integration based on native Bullet. |
| JBox2D | 2D | A Java port of Box2D and LiquidFun. |
| Box2D4j | 2D | An experimental Java port of Box2D. |
The 2D options do not automatically connect their simulation to the jMonkeyEngine scene graph. Your application is responsible for stepping the simulation and synchronizing game objects, unless a separate integration provides that behavior.
Browse physics modules in the Library for other integrations. For Bullet-specific examples, continue with the Bullet physics guide; for geometric queries without a physics simulation, see Collision and picking.