Hi there,

i thought i'd post a link here for future reference. I wrote a
complete JNI bridge to the latest Box2D release for Android. All
relevant classes are wrapped via lightweight Java counter parts, all
listeners except the destroy listener are exposed, all joints are
support and so on and so forth. The only things missing are some of
the body->GetNextBody() methods which would just not work out very
well in Java (well, it's possible but not very wise performance wise).
The focus of this port was on getting a zero dynamic allocation
version of Box2D directly accessible in Java and i think i succeeded
in that. You can find more info about it at
http://apistudios.com/hosted/marzec/badlogic/wordpress/?p=586.

I altered the source only marginally, some of the include definitions
needed reworking (at least i couldn't get it to work any other way)
and the dependence on the stl algorithm package for sorting has been
replaced by a simple qsort. Other than that it's a vanilla Box2D
version that's used. Also note that this does work on the desktop as
well (libgdx is "crossplatform" ).

I consider making a seperate project out of this so it is not
dependant on libgdx. For the time being i keep it there though as it
eases my pains of managing multiple projects a little. It should be
trivial to cut out the box2d parts from the libgdx source and create a
seperate project out of it. So just go ahead if that's what you want
to do :)

Hope that helps out a couple of you guys a little,
Mario

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to