world state

Hi,
I saw that there are allready some topics on networking box2d. What I want is to send the world state, and recreate the same thing on the client. I f anyone has a solution, it would be much appreciated. I got stuck when trying to send the contactlist.

Thanks,
Radu
I don't think this is possible.

Since there are linked lists and other internal stuff which depends on the exact order of creation, you'd probably have to deep copy and serialize the entire world. So you'd need to transmit way, way more data then you really want to over a network.

Original thread: https://box2d.org/forum/viewtopic.php?t=4611