Box2D physics are different on server and client

by Basea Basilia   Last Updated March 14, 2019 19:13 PM - source

I'm using C# Box2D library for my server and client, they have similar world.step(), iterations and update function. At the same time they have different physics' results, difference is not fixed, it may be 1-2% or more than 10%. My timestep is 0.02f and 10 iterations(for both). Code of the client and the server is almost the same. I believe it's because of I have the same timestep on both, server and client, but their code execution speed may be quite different. How can I get the same results in different applications/on different computers?



Related Questions


Data oriented design in physics engine

Updated January 04, 2017 08:05 AM


What is the physics behind "Getting Over It"?

Updated December 09, 2017 04:13 AM


What is inertia in a physics engine?

Updated May 24, 2017 14:13 PM