Box2D physics are different on server and client

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

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


Updated January 04, 2017 08:05 AM

Updated July 27, 2017 08:13 AM

Updated December 09, 2017 04:13 AM

Updated January 10, 2017 08:05 AM

Updated May 24, 2017 14:13 PM