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:

local krpc = require 'krpc'

local conn = krpc.connect('Trajectories Example')
local body = conn.space_center.active_vessel.orbit.body
print(conn.trajectories.impact_position(body.reference_frame))