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

WorldSerializer does not serialize IgnoreGravity

Dec 23, 2011 at 2:53 AM

I am using the worldserializer to save and load my levels from a level editor that I am working on.  One of the properties I would like to set is the IgnoreGravity bool.  After looking at the XML file however it is not there and my level loses this information between loads and saves.  Am I doing something wrong or is there a reason why Farseer does this?  A better question would be, is there a work around for this?


Thanks for any help you can provide.



Dec 23, 2011 at 3:00 AM

Never mind.  A quick look at the serialization file and all I had to do was add ignore physics to the serializer and deserializer.  Sorry.  Should have tried that before posting.