Hi guys! Today I decide I should finally implement physics in my world (or at least make the world solid). But I don’t know the best way to do it. I can message the physicsSpace to everyone, but that is a dirty solution. Or can I message the server when I do “setWalkDirection(…)” at my BetterCharacterControl? I don’t know well how to do it, and I would like to hear your opinions.
Thanks,
Ev1lbl0w
PS: Yes, I know that a multiplayer server is way harder to do than a singleplayer game.
Have an authoritative physics space on the server and physics spaces on the client to do the interpolation, sync button presses directly and the physics state in intervals, buffer the time offset due to the network lag. MonkeyZone is an example of that approach.