Hello,
The force being applied now is +50
If frame rate is 60 and timestep is 1/60 it behaves differently than when frame rate is 30 and timestep is 1/30.
Is this normal for a physics simulation ?!?
I find this kinda weird...
Bye,
Skybuck.
I suggest you write a simple 1 dimensional particle simulation and try different integrators and time steps. This will get you outside of the big code base of Box2D and help you understand the interaction between time steps, forces, and accuracy.
I think I already understand..
I just need confirmation from you that if the timestep changes that forces will be applied differently if it's just done for one single step... and that trajectories will indeed be slightly different and that this is normal 😉 🙂
For example:
TimeStep := 1/30; Force := 25; <- Applied for one step.
vs
TimeStep := 1/60; Force := 50; <- Applied for one step.
Trajectories will be slightly different.
Bye,
Skybuck.
Yeah, if you only apply the force for one step, the results should be very different.