External Publication
Visit Post

Library for the Box2D engine

jMonkeyEngine Hub June 17, 2026
Source

I’m currently working on a small library that exposes links to the box2d physics engine. This library mirrors the functions and structures of the box2d library, so the engine’s official documentation will be familiar in terms of its operation.

Initially, I wanted it to be an extension of lwjgl3, but then I wanted to integrate this library into other platforms like Android (so I abandoned that idea). Its structure is based on lwjgl3 (it’s very interesting how it’s built). I created several prototypes to understand how lwjgl3 worked with native objects, and although I learned a lot, it ended up being a monstrous project.

github.com

GitHub - JNightRider/box2d-jni: Box2d-JNI is an implementation of the Box2D...

Box2d-JNI is an implementation of the Box2D physics engine for Java (JNI)

So far I’ve only tested it on Linux, but I hope to adapt it to Windows, macOS (if possible), and Android. It still has many aspects that need polishing

Discussion in the ATmosphere

Loading comments...