Ejemplo n.º 1
0
        public SimulationState(CelestialBody planet, double departureAltitude, Vector3d forward)
        {
            this.planet  = planet;
            this.forward = forward;

            x              = 0;
            y              = planet.Radius + departureAltitude;
            vx             = planet.rotates ? (y * 2 * Math.PI / planet.rotationPeriod) : 0;
            vy             = 0;
            throttle       = 1.0f;
            activeEngines  = new List <EngineWrapper>();
            availableNodes = new Dictionary <Part, Node>();
            ascentPath     = new DefaultAscentPath(planet);
        }
Ejemplo n.º 2
0
		public SimulationState(CelestialBody planet, double departureAltitude, Vector3d forward)
		{
			this.planet = planet;
			this.forward = forward;

			x = 0;
			y = planet.Radius + departureAltitude;
			vx = planet.rotates ? (y * 2 * Math.PI / planet.rotationPeriod) : 0;
			vy = 0;
			throttle = 1.0f;
			activeEngines = new List<EngineWrapper>();
			availableNodes = new Dictionary<Part, Node>();
			ascentPath = new DefaultAscentPath(planet);
		}