Box2D networking

Posted by spacevillain on Game Development See other posts from Game Development or by spacevillain
Published on 2011-06-03T13:51:18Z Indexed on 2012/12/05 5:33 UTC
Read the original article Hit count: 387

Filed under:
|

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

© Game Development or respective owner

Related posts about networking

Related posts about box2d