Move objects in a network multiplayer game

Hi,

We are using Corona and its physics engine to move objects along a landscape of some sort (like tiny wings but only on the ground) and we have a question regarding correction of positions. Say that a box is traveling along the rolling hills, but its position is computed on another device. A few times each second, you receive:
an updated position
the velocity of the box
the time at which the information was sent
So we know that the information is X milliseconds old, and would like to find out where it should be by now (assuming it is affected by physics) and keep simulating until we get another update.
Right now, we tried simply multiplying the velocity by the amount of time since the package was sent, but as you can imagine, this behaves really poorly if the terrain is curved/not flat.

Is there a way to say: “Stop everything and give me the position this box would have if physics had acted on it for X ms, then resume gameplay” without actually halting all gameplay for X ms? [import]uid: 88922 topic_id: 22475 reply_id: 322475[/import]