Exemplo n.º 1
0
        public SolarSystemState Clone()
        {
            var clone = new SolarSystemState();

            clone.CopyFrom(this);
            return(clone);
        }
Exemplo n.º 2
0
    private void stepSimulation()
    {
        _simTime += Time.deltaTime * simulationSpeed;

        while (_simTime > _currState.simTime)
        {
            _prevState.CopyFrom(_currState);
            _currState.Step();
        }

        if (OnUpdateSystem != null)
        {
            OnUpdateSystem();
        }
    }