This project has moved and is read-only. For the latest updates, please go here.

Replay system

Topics: Developer Forum
Mar 25, 2011 at 2:48 AM


 Is Farseer consistent enough, in terms of time steps, to ensure that if inputs are repeated, then the outputs will always be the same? I want to create a replay system and the easiest way to do this would be to simply replay the inputs that were given. However, if this may result in varied results across different systems, then it might not be the best approach. Thanks

Mar 25, 2011 at 3:03 AM

FWIW, box2d is deterministic. This *should* mean that if farseer isn't, it is a bug. I'm sure the devs will correct me if I'm wrong about this :)

Mar 25, 2011 at 11:07 AM

Just be sure to use a fixed timestep.

Mar 25, 2011 at 11:50 AM

Trust me, you will be better off if you don't try to replay the physics.  It's not necessary.  Just keep track of the position and rotation of all your objects and on re-play, explicitly set them.  

Mar 25, 2011 at 9:39 PM

Thanks for the help. I'll store the data in a list and iterate it through it during the replay.