I've read much about the attempt at determinism in Jbox2d, and have found a simple workaround that ALMOST works.
I am working with Processing and Fisica (a jbox2d wrapper), so that adds another degree of separation -- (I'm also not all that versed in changing/compiling Java code, so the potential of adding strictfp to all the classes, and then recompiling both Jbox2d and Fisica is a little daunting).
This is my first version where each run is different [non-deterministic] (click to reset bricks)
Check : http://leifparker.com/_storage/explosive_test/
If you click the applet, it will erase the geometry and set it up exactly as previous, and the result will be entirely different. BUT -- If you reload the webpage, you'll notice that the first iteration is always the same. Thus my idea of just creating a new instance of the World variable -- and it does work!
Clicking will clear all the bricks, and start from scratch with a new World. [deterministic]
Check : http://leifparker.com/_storage/explosive_test_v2/
New problem : I quickly run out of memory. It seems that some part of the World constructor assigns a reference that doesn't get de-referenced when I instantiate a new World. Java's garbage collector isn't cleaning up the old World instance properly.
What can I do? Any ideas?
Thanks in advance,