Service#

Provides functionality to interact with Trajectories.

Note

Trajectories predicts the trajectory of the active vessel only.

available#

Whether Trajectories is available.

Attribute:

Read-only, cannot be set

Return type:

bool

static impact_patch()#

The patch of the trajectory that ends in an impact.

Returns:

The patch, or None without an impact.

Return type:

Patch or None

Game Scenes:

Flight

static impact_position(reference_frame)#

The position of the impact, or None without one.

Parameters:

reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.

Return type:

tuple(float, float, float) or None

Game Scenes:

Flight

Note

In a reference frame that rotates with the body, the position includes the rotation of the body until the impact.

static impact_velocity(reference_frame)#

The velocity at the impact, or None without one.

Parameters:

reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the velocity.

Return type:

tuple(float, float, float) or None

Game Scenes:

Flight

Note

In a reference frame that rotates with the body, the velocity includes the rotation of the body until the impact.

static patches()#

The patches of the trajectory.

Return type:

list(Patch)

Game Scenes:

Flight

static planned_direction(reference_frame)#

The direction that the descent profile sets for the vessel.

Parameters:

reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the direction.

Returns:

The direction, or None without a target.

Return type:

tuple(float, float, float) or None

Game Scenes:

Flight

static corrected_direction(reference_frame)#

The planned_direction(), corrected to steer towards the target.

Parameters:

reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the direction.

Returns:

The direction, or None without a target.

Return type:

tuple(float, float, float) or None

Game Scenes:

Flight

Note

Suitable as the target direction of the auto-pilot.

static set_target(reference_frame, position[, body=None])#

Sets the target.

Parameters:
Game Scenes:

Flight

target_body#

The body of the target, or None without a target.

Attribute:

Read-only, cannot be set

Return type:

SpaceCenter.CelestialBody or None

Game Scenes:

Flight

static target_position(reference_frame)#

The position of the target, or None without a target.

Parameters:

reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.

Return type:

tuple(float, float, float) or None

Game Scenes:

Flight

static clear_target()#

Clears the target.

Game Scenes:

Flight

descent_profile#

The descent profile.

Attribute:

Read-only, cannot be set

Return type:

DescentProfile

Game Scenes:

Flight

always_update#

Whether Trajectories updates the trajectory continuously.

Attribute:

Can be read or written

Return type:

bool

Game Scenes:

Flight

Note

When False, update_trajectory() updates the trajectory.

static update_trajectory()#

Updates the trajectory.

Game Scenes:

Flight