Trajectories#

Provides functionality to interact with the Trajectories mod. Tested with Trajectories 2.4.5.5.

Example#

The following example prints the predicted impact position of the active vessel, in the reference frame of the body it orbits:

using System;
using KRPC.Client;
using KRPC.Client.Services.SpaceCenter;
using KRPC.Client.Services.Trajectories;

class TrajectoriesExample
{
    public static void Main ()
    {
        using (var connection = new Connection ("Trajectories Example")) {
            var body = connection.SpaceCenter ().ActiveVessel.Orbit.Body;
            Console.WriteLine (connection.Trajectories ()
                .ImpactPosition (body.ReferenceFrame));
        }
    }
}