Пример #1
0
    public static void Main(string[] args)
    {
        Planet planet = new Planet(60000,9.81,60000);
        Trajectory traj = new Trajectory(planet, new Vector3D(0, 120000, 0), new Vector3D(1000, 1000, 0));

        bool cancel=true;
        while (cancel)
        {
            traj.Step();
            Console.WriteLine(traj.pos+" "+traj.vel);
            if (traj.pos.Magnitude() < planet.Radius)
            {
                //cancel = false;
                //break;
            }
        }
        Console.ReadLine();
    }