We're working on a smartfox multiplayer game with awkward latency (worst case ~200ms). On previous projects, we modified Box2D to extrapolate the position of a single body.
E.g. if I receive a position/momentum message which I know from its timestamp is 155ms old, then I can simulate that single body forward to "current time".
Is there a way to realize this with RigidBodies in Unity? Or will we have to script our own custom physics? I've experimented with an euler prediction step, e.g.
However, the results have been less than acceptable (even if I take multiple smaller steps, the linear/angular velocity isn't integrated correctly).
asked Apr 19 '10 at 03:25 PM
what i ended ujp doing is have the movement of the player update quite often to keep the network better synced, and did all my physics calculations on the server and just updated the position on the client.
To smooth out the jump from between network updates to the movement I had the client actually effect its object in real time and interpolate between the received server movement and the current players movement actions
answered Aug 28 '11 at 07:39 PM