This project has moved. For the latest updates, please go here.

World Cloning

Topics: Developer Forum
Dec 26, 2012 at 8:27 AM

Hi! Is there any way to clone entire World?


In some points of simulation process I need to “predict” world reaction on different input. So I'm going to make some independent clones, run them separately on different inputs (like angle of the cannon), and choose the best variant.


I'm looking for the way to “split” history to several branches and return to bifurcation point later. Can I perform that with Farseer?


Thank you in advance!

Dec 28, 2012 at 1:08 AM

There is a WorldSerializer class that I built to save the world as an XML document. Beware that I never had much time to test it, and I'm not even sure it touches all the properties it needs to. There is no functionality to clone a world, if you need it, create a work item.