Patch#
-
type krpc_Trajectories_Patch_t#
A patch of the trajectory, at its position in
krpc_Trajectories_Patches().Note
Trajectories computes the trajectory again as the vessel flies, and the patch reads the latest one. Throws an exception if the trajectory has fewer patches.
-
KRPC_CLASS_TRAJECTORIES_PATCH#
The service and class ids of the class, for
krpc_KRPC_Type_ClassTypeById().
-
krpc_error_t krpc_Trajectories_Patch_Position(krpc_connection_t connection, krpc_tuple_double_double_double_t *returnValue, bool *returnValueIsNull, krpc_Trajectories_Patch_t instance, krpc_SpaceCenter_ReferenceFrame_t referenceFrame)#
The position of the impact, or
nullptrwithout one.- Parameters:
referenceFrame – The reference frame for the position.
- Game Scenes:
Flight
Note
In a reference frame that rotates with
krpc_Trajectories_Patch_Body(), the position includes the rotation of the body until the impact.
-
krpc_error_t krpc_Trajectories_Patch_Velocity(krpc_connection_t connection, krpc_tuple_double_double_double_t *returnValue, bool *returnValueIsNull, krpc_Trajectories_Patch_t instance, krpc_SpaceCenter_ReferenceFrame_t referenceFrame)#
The velocity at the impact, or
nullptrwithout one.- Parameters:
referenceFrame – The reference frame for the velocity.
- Game Scenes:
Flight
Note
In a reference frame that rotates with
krpc_Trajectories_Patch_Body(), the velocity includes the rotation of the body until the impact.
-
krpc_error_t krpc_Trajectories_Patch_Body(krpc_connection_t connection, krpc_SpaceCenter_CelestialBody_t *returnValue, krpc_Trajectories_Patch_t instance)#
The celestial body that the patch is relative to.
- Game Scenes:
Flight
-
krpc_error_t krpc_Trajectories_Patch_StartUT(krpc_connection_t connection, double *returnValue, krpc_Trajectories_Patch_t instance)#
The universal time at the start of the patch, in seconds.
- Game Scenes:
Flight
-
krpc_error_t krpc_Trajectories_Patch_EndUT(krpc_connection_t connection, double *returnValue, krpc_Trajectories_Patch_t instance)#
The universal time at the end of the patch, in seconds.
- Game Scenes:
Flight
Note
For a patch that ends in an impact, this is the time of the impact.
-
krpc_error_t krpc_Trajectories_Patch_Atmospheric(krpc_connection_t connection, bool *returnValue, krpc_Trajectories_Patch_t instance)#
Whether the patch is inside an atmosphere.
- Game Scenes:
Flight
-
krpc_error_t krpc_Trajectories_Patch_AtmosphericTrajectory(krpc_connection_t connection, krpc_list_tuple_double_double_double_double_t *returnValue, bool *returnValueIsNull, krpc_Trajectories_Patch_t instance, krpc_SpaceCenter_ReferenceFrame_t referenceFrame)#
The points of an atmospheric patch, or
nullptrfor a patch in space.- Parameters:
referenceFrame – The reference frame for the positions.
- Game Scenes:
Flight
Note
Each point is a tuple
(ut, x, y, z). In a reference frame that rotates withkrpc_Trajectories_Patch_Body(), the positions include the rotation of the body until each point.
-
krpc_error_t krpc_Trajectories_Patch_OrbitalTrajectory(krpc_connection_t connection, krpc_SpaceCenter_Orbit_t *returnValue, krpc_Trajectories_Patch_t instance)#
The orbit of a patch in space, or
nullptrfor an atmospheric patch.- Game Scenes:
Flight
-
KRPC_CLASS_TRAJECTORIES_PATCH#