Box2D networking
- by spacevillain
I am trying to make a simple sync between two box2d rooms, where you can drag boxes using the mouse.
So every time player clicks (and holds the mousedown) a box, I try send joint parameters to server, and server sends them to other clients. When mouseup occurs, I send command to delete joint.
The problem is that sync breaks too often. Is my way radically wrong, or it just needs some tweaks?
http://www.youtube.com/watch?v=eTN2Gwj6_Lc
Source code https://github.com/agentcooper/Box2d-networking