Hey everyone,
Still new to Box2D and fiddling around with as an engine for my game. I'm curious if anyone had any experience with applying state-rollbacks for network sync correction as described in this article http://gafferongames.com/game-physics/networked-physics/ to a Box2D world. If so, how exactly do you handle the rollbacks? Do you completely destroy and recreate each body anytime you need to rollback to a previous state? Or do you store references to each in each state and adjust parameters? How do you deal with a previous state where a body exists in the world that has since been destroyed, or vice versa? I've seen posts on serializing states for storage in files and playback, but not one for on-the-fly world control. Any advice? Thanks!
Still new to Box2D and fiddling around with as an engine for my game. I'm curious if anyone had any experience with applying state-rollbacks for network sync correction as described in this article http://gafferongames.com/game-physics/networked-physics/ to a Box2D world. If so, how exactly do you handle the rollbacks? Do you completely destroy and recreate each body anytime you need to rollback to a previous state? Or do you store references to each in each state and adjust parameters? How do you deal with a previous state where a body exists in the world that has since been destroyed, or vice versa? I've seen posts on serializing states for storage in files and playback, but not one for on-the-fly world control. Any advice? Thanks!