I am working on a Processing Genetic Algorithm applet, which uses Fisica to run simulations.
Since a Genetic Algorithm requires that results be reproducible (otherwise offspring will not reflect their parents successes), I am needing Fisica to produce the same results given the same context and set of parameters.
My research has shown me that Box2d is deterministic (should be reproducible), but not if the timeStep is linked to a variable frameRate .. as Processing's draw() function is.
This issue is addressed in many articles (eg.
UNA games - Fixed Time Step), but I don't seem to be able (with a limited knowledge of other languages) to be able to port their methods to Processing.
You can see a simple simulator I've created here -
A Simple Simulator .. (click to reset bricks) .. but every click produces different, though similar results.