I want to find an efficient way to clone a big system object (planetary system in my case) with all its sub-objects. The sub-objects have coordinates and stuff like that, planets etc. So a deep copy, i guess..
I tried cloning and some serializable hacks, didn't seem to be working, the copy's sub-objects attributes didn't remain constant as I tried printing the copy's certain planets coordinates after i made the copy and the planets continued orbitting.
My main goal is to save a current state of the whole systems object positions, states etc. and recover back to it at any given time after the copy has been made. Hope I haven't misunderstood anything..