Hey, guys!
I want to make a networked physics game.
I've studied some others' work, especially Glenn Fiedler's blog and his GDC speech stuff.
As far as I know, the key problems is the latency and the deterministic thing brought by FP operations. Generally, I think Glenn's approach makes sense.
Latency problem:I want to use the old method Lock Step Simultaneous Simulation which is widely used in RTS games. Every player simulates other players action simultaneously after a few milliseconds when the action is broadcasted to everyone.
FP operation deterministic problem:Use Glenn's approach, broadcasting the affected bodies' position and velocity to other players for their correction.
I want to continue using box2d as the physics engine, but I don't know whether or not it is possible or easy to implement. Because I have not studied the core source code, I just used some APIs.
Should I pursue this idea? Is there something I should know about? Thanks!
I write an email to Erin, and he suggest me to post here for discussion.
I want to make a networked physics game.
I've studied some others' work, especially Glenn Fiedler's blog and his GDC speech stuff.
As far as I know, the key problems is the latency and the deterministic thing brought by FP operations. Generally, I think Glenn's approach makes sense.
Latency problem:I want to use the old method Lock Step Simultaneous Simulation which is widely used in RTS games. Every player simulates other players action simultaneously after a few milliseconds when the action is broadcasted to everyone.
FP operation deterministic problem:Use Glenn's approach, broadcasting the affected bodies' position and velocity to other players for their correction.
I want to continue using box2d as the physics engine, but I don't know whether or not it is possible or easy to implement. Because I have not studied the core source code, I just used some APIs.
Should I pursue this idea? Is there something I should know about? Thanks!
I write an email to Erin, and he suggest me to post here for discussion.