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
Nonewithout an impact.- Return type:
Patchor None- Game Scenes:
Flight
- static impact_position(reference_frame)#
The position of the impact, or
Nonewithout 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
Nonewithout 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 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
Nonewithout 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
Nonewithout 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:
reference_frame (SpaceCenter.ReferenceFrame) – The reference frame for the position.
position (tuple) – The position of the target.
body (SpaceCenter.CelestialBody or None) – The body of the target, by default the body the active vessel orbits.
- Game Scenes:
Flight
- target_body#
The body of the target, or
Nonewithout a target.- Attribute:
Read-only, cannot be set
- Return type:
SpaceCenter.CelestialBodyor None- Game Scenes:
Flight
- static target_position(reference_frame)#
The position of the target, or
Nonewithout 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:
- 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