Move SolarSysObject r, v functions into new State class.