These are chat archives for PrismarineJS/prismarine-server

1st
May 2016
Jerkoco
@Jerkoco
May 01 2016 07:58
Hello ! Is anyone know how physics works in a multiplayer game ? the collisions must be tested on the server ? Thanks.
Robin Lambertz
@roblabla
May 01 2016 10:05
it's tested on both the client and the server
the server just makes sure the client isn't "cheating" when it gives its position
Jerkoco
@Jerkoco
May 01 2016 10:32
Thanks ! I'm making a pong game, and the ball is moved by the server (and the position is sended to clients), and if a ball touch a player, the ball bounce, so I need to detect collisions, but it's strange, which player will detect the collisions ? Why not only the server ?
mhsjlw
@mhsjlw
May 01 2016 10:32
This is really, really unrelated and cross-posted...
The server is the one moving the ball and sending updates to the client
Or, should be
Jerkoco
@Jerkoco
May 01 2016 10:34
that's what i do
mhsjlw
@mhsjlw
May 01 2016 10:37
Ok, so whats the problem... ?