I am working on a project using Processing for rendering and JBox2D for physics. Should I put the world.step call inside Processing's draw call?
The problem is that if I have a fixed 60 fps frameRate, Processing's draw method may take longer that 1/60s to run, thus making a wrong step for the physics simulation (given the 1/60s timestep).
Is anyone using processing + jbox2D? Is it recommended?
Thanks in advance,
Fábio
The problem is that if I have a fixed 60 fps frameRate, Processing's draw method may take longer that 1/60s to run, thus making a wrong step for the physics simulation (given the 1/60s timestep).
Is anyone using processing + jbox2D? Is it recommended?
Thanks in advance,
Fábio