public SolarSystemState Clone() { var clone = new SolarSystemState(); clone.CopyFrom(this); return(clone); }
private void stepSimulation() { _simTime += Time.deltaTime * simulationSpeed; while (_simTime > _currState.simTime) { _prevState.CopyFrom(_currState); _currState.Step(); } if (OnUpdateSystem != null) { OnUpdateSystem(); } }