Is this possible to port from C++ to Java?

Hello folks,

I’m wondering if this: https://github.com/seemk/DestructibleBox2D could be ported to Java.
Maybe somebody more advanced than me has already tried or can have a short look at it and decide whether it’s possible or not.

I’m not asking for anybody to port it for me, it’s just that I don’t know C++, but am struggling to create the same results since a few weeks and stumbled upon this.

Here is the video show the code in action: http://www.youtube.com/watch?v=I5_WBPBQ6kE

Have a wonderful day!

Typically you’ll want to use a native binding for Box2D. LibGDX provides this https://github.com/libgdx/libgdx/wiki/Box2d

The second aspect is that you need to confirm that the Box2D functionality that DestructibleBox2D uses is supported by the Box2D binding of LibGDX.

The third aspect that you need to detangle since DestructibleBox2D depends on Boost.Geometry is to figure out what aspects of that library are used and reimplement it in Java quite likely, but just what you need to accomplish the task.

Something to keep in mind is efficiency for collections. LibGDX may provide all you need, but I haven’t looked at DestructibleBox2D in depth. Avoiding creating objects all the time on the Java side is pertinent.

Looks fun! Reminds me of this game