I’m trying to work out how to integrate a custom collision detection routine into the Java bindings to ODE. In the C-world, I would just make sure I have the right callback defined for my body geometry (dGeomMoved()).
In the low-level bindings, the code is back to front. It’s making a JNI call to a method of the same name, rather than the other way around of having the native code make a callback to the Java code. ie
public static void dGeomMoved(SWIGTYPE_p_dGeomID arg0) {
OdeJNI.dGeomMoved(SWIGTYPE_p_dGeomID.getCPtr(arg0));
}
So, has anyone else managed to work around this issue and integrate custom collision detection with the basic physics engine? If so, how did you do it?