dualfantasy Posted July 4, 2016 Share Posted July 4, 2016 To make it multiplayer,what params do I need to send to the other player? My code below is not working. In the original takeShot method, I changed a little bit to send the params(px,py,cueball.x,cueball.y) to the server. When the player1 hit the cue ball,the server will call updateHit method to update player2's pool.(I just simply call the applyImpluse method) but it will mess around and not synchronous, like the pictures below. When I only make two balls in the pool, first or second hit,their position are the same at two players pool,but after serval times hit, two balls position will be slightly different.(look at those x,y,rx,ry param). I wonder why this could happen,because I defintely send the same hit params. Is there anything I miss to fix the problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.