.. default-domain:: js .. highlight:: js .. module:: SpaceCenter :no-index: Flight ====== .. class:: Flight Used to get flight telemetry for a vessel, by calling :meth:`SpaceCenter.Vessel.flight`. All of the information returned by this class is given in the reference frame passed to that method. Obtained by calling :meth:`SpaceCenter.Vessel.flight`. .. note:: To get orbital information, such as the apoapsis or inclination, see :class:`SpaceCenter.Orbit`. .. method:: getGForce() The current G force acting on the vessel in :math:`\mathrm{g}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getMeanAltitude() The altitude above sea level, in meters. Measured from the center of mass of the vessel. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSurfaceAltitude() The altitude above the surface of the body or sea level, whichever is closer, in meters. Measured from the center of mass of the vessel. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getBedrockAltitude() The altitude above the surface of the body, in meters. When over water, this is the altitude above the sea floor. Measured from the center of mass of the vessel. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getElevation() The elevation of the terrain under the vessel, in meters. This is the height of the terrain above sea level, and is negative when the vessel is over the sea. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getLatitude() The `latitude `_ of the vessel for the body being orbited, in degrees. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getLongitude() The `longitude `_ of the vessel for the body being orbited, in degrees. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSurfaceNormal() The normal to the surface under the vessel, in the reference frame :class:`SpaceCenter.ReferenceFrame`. This describes the slope of the terrain, and points straight up when the vessel is over water. :Property: Read-only, cannot be set :returns: The normal as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getVelocity() The velocity of the vessel, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The velocity as a vector. The vector points in the direction of travel, and its magnitude is the speed of the vessel in :math:`\mathrm{m/s}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getSpeed() The speed of the vessel in :math:`\mathrm{m/s}`, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getHorizontalSpeed() The horizontal speed of the vessel in :math:`\mathrm{m/s}`, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getVerticalSpeed() The vertical speed of the vessel in :math:`\mathrm{m/s}`, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getAcceleration() The acceleration of the vessel, in the reference frame :class:`SpaceCenter.ReferenceFrame`. This is the total acceleration, including the acceleration due to gravity, and is the time derivative of :meth:`SpaceCenter.Flight.getVelocity`. :Property: Read-only, cannot be set :returns: The acceleration as a vector. The vector points in the direction of the acceleration, and its magnitude is the acceleration of the vessel in :math:`\mathrm{m/s^{2}}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getCenterOfMass() The position of the center of mass of the vessel, in the reference frame :class:`SpaceCenter.ReferenceFrame` :Property: Read-only, cannot be set :returns: The position as a vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getRotation() The rotation of the vessel, in the reference frame :class:`SpaceCenter.ReferenceFrame` :Property: Read-only, cannot be set :returns: The rotation as a quaternion of the form ``(x, y, z, w)``. :rtype: ``[number, number, number, number]`` :Game Scenes: Flight .. method:: getDirection() The direction that the vessel is pointing in, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getPitch() The pitch of the vessel relative to the horizon, in degrees. A value between -90° and +90°. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: An absolute Euler angle, ill-conditioned when the vessel points near vertical (a pitch near -90° or +90°), where heading and roll become ambiguous. For an always-defined attitude use :meth:`SpaceCenter.Flight.getRotation` or :meth:`SpaceCenter.Flight.getDirection`. .. method:: getHeading() The heading of the vessel (its angle relative to north), in degrees. A value between 0° and 360°. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: An absolute Euler angle, undefined when the vessel points near vertical (a pitch near -90° or +90°). For an always-defined attitude use :meth:`SpaceCenter.Flight.getRotation` or :meth:`SpaceCenter.Flight.getDirection`. .. method:: getRoll() The roll of the vessel relative to the horizon, in degrees. A value between -180° and +180°. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: An absolute Euler angle, ill-conditioned when the vessel points near vertical (a pitch near -90° or +90°), where the vertical-plane reference vanishes. For an always-defined attitude use :meth:`SpaceCenter.Flight.getRotation`; for a well-defined roll use the auto-pilot's ``TargetRoll`` / ``RollError`` against a chosen up reference. .. method:: getPrograde() The prograde direction of the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getRetrograde() The retrograde direction of the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getSurfacePrograde() The direction of the vessels surface velocity, in the reference frame :class:`SpaceCenter.ReferenceFrame`. This is the prograde direction as shown on the navball when in surface mode. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: Singular when surface speed is approximately zero. .. method:: getSurfaceRetrograde() The direction opposite to the vessels surface velocity, in the reference frame :class:`SpaceCenter.ReferenceFrame`. This is the retrograde direction as shown on the navball when in surface mode. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: Singular when surface speed is approximately zero. .. method:: getNormal() The direction normal to the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getAntiNormal() The direction opposite to the normal of the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getRadial() The radial direction of the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getAntiRadial() The direction opposite to the radial direction of the vessels orbit, in the reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: The direction as a unit vector. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getAtmosphereDensity() The current density of the atmosphere around the vessel, in :math:`\mathrm{kg/m^{3}}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getDynamicPressure() The dynamic pressure acting on the vessel, in Pascals. This is a measure of the strength of the aerodynamic forces. It is equal to :math:`\frac{1}{2} \rho v^{2}`, where :math:`\rho` is the air density and :math:`v` the velocity. It is commonly denoted :math:`Q`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getStaticPressure() The static pressure acting on the vessel, in Pascals. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Below the waterline this includes the pressure of the water above the vessel's center of mass. .. method:: getStaticPressureAtMSL() The static atmospheric pressure at mean sea level, in Pascals. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getDisplacement() The volume of water the vessel displaces when fully submerged, in :math:`\mathrm{m^{3}}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getDisplacedVolume() The volume of water the vessel is displacing, in :math:`\mathrm{m^{3}}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSubmergedPortion() The fraction of the vessel below the waterline, between 0 and 1. This is :meth:`SpaceCenter.Flight.getDisplacedVolume` over :meth:`SpaceCenter.Flight.getDisplacement`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getCenterOfBuoyancy() The point the total buoyant force on the vessel acts through, in reference frame :class:`SpaceCenter.ReferenceFrame`. Returns ``null`` if no part of the vessel is in the water. :Property: Read-only, cannot be set :returns: The position as a vector. :rtype: ``[number, number, number]`` or ``null`` :Game Scenes: Flight .. note:: A hull at rest carries this on the same vertical line as :meth:`SpaceCenter.Flight.getCenterOfMass`. A horizontal offset between the two turns the weight and the buoyancy into a couple that rolls or pitches the vessel. .. method:: getBuoyantForce() The total buoyant force acting on the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: A vessel floating at rest carries a buoyant force equal to its weight. .. method:: getBuoyantAcceleration() The acceleration of the vessel due to the buoyant force acting on it (:meth:`SpaceCenter.Flight.getBuoyantForce` divided by the vessel's mass), in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the vessel is accelerated, with its magnitude equal to the acceleration in :math:`\mathrm{m/s^{2}}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getBuoyantTorque() The torque the buoyant force exerts on the vessel about its center of mass, in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing along the axis of the torque, with its magnitude equal to the strength of the torque in :math:`\mathrm{N \cdot m}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getFullySubmergedCenterOfBuoyancy() The point the buoyant force acts through with the vessel fully submerged, in reference frame :class:`SpaceCenter.ReferenceFrame`. Returns ``null`` if no part of the vessel displaces any water. :Property: Read-only, cannot be set :returns: The position as a vector. :rtype: ``[number, number, number]`` or ``null`` :Game Scenes: Flight .. note:: The point is fixed relative to the hull. :meth:`SpaceCenter.Flight.getCenterOfBuoyancy` moves as the vessel rides the waves. .. method:: buoyantForceAt(density, gravity) The buoyant force on the vessel when fully submerged in a fluid of the given density, in Newtons. :param density: The density of the fluid, in :math:`\mathrm{kg/m^{3}}`. :type density: ``number`` :param gravity: The acceleration due to gravity, in :math:`\mathrm{m/s^{2}}`. :type gravity: ``number`` :rtype: ``number`` :Game Scenes: Flight .. method:: buoyantTorqueAt(density, gravity) The torque the buoyant force exerts about the vessel's center of mass when fully submerged in a fluid of the given density, in reference frame :class:`SpaceCenter.ReferenceFrame`. Gravity acts towards the center of the body. :param density: The density of the fluid, in :math:`\mathrm{kg/m^{3}}`. :type density: ``number`` :param gravity: The acceleration due to gravity, in :math:`\mathrm{m/s^{2}}`. :type gravity: ``number`` :returns: A vector pointing along the axis of the torque, with its magnitude equal to the strength of the torque in :math:`\mathrm{N \cdot m}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getDepth() The depth of the center of mass of the vessel below the waterline, in meters. Negative above the waterline. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSubmergedDynamicPressure() The dynamic pressure of the water acting on the vessel, in Pascals. Returns zero if no part of the vessel is below the waterline. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getAerodynamicForce() The total aerodynamic forces acting on the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: This is the force the aerodynamics model actually applied to the vessel on the last physics frame, summed over its parts, so it points where the air pushes the vessel whatever the vessel's orientation. It equals :meth:`SpaceCenter.Flight.getLift` plus :meth:`SpaceCenter.Flight.getSideForce` plus :meth:`SpaceCenter.Flight.getDrag`. .. method:: getAerodynamicTorque() The net aerodynamic torque currently acting on the vessel about its center of mass, in reference frame :class:`SpaceCenter.ReferenceFrame`. The magnitude is in :math:`\mathrm{N \cdot m}`. :Property: Read-only, cannot be set :returns: A vector pointing along the axis of the torque, with its magnitude equal to the strength of the torque in :math:`\mathrm{N \cdot m}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: This is the live counterpart to :meth:`SpaceCenter.Flight.getAerodynamicForce`: it is the torque the aerodynamics model applied on the current physics frame, taken about the center of mass, rather than one re-simulated for hypothetical conditions the way :meth:`SpaceCenter.Flight.simulateAerodynamicTorqueAt` does. It is intended for validating the simulator against the live game state. .. method:: simulateAerodynamicForceAt(body, position, velocity, rotation) Simulate and return the total aerodynamic forces acting on the vessel, if it were traveling with the given velocity, at the given position and orientation, in the atmosphere of the given celestial body. :param body: The celestial body whose atmosphere the forces are simulated in. :type body: :class:`SpaceCenter.CelestialBody` :param position: The position of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type position: ``[number, number, number]`` :param velocity: The velocity of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type velocity: ``[number, number, number]`` :param rotation: The orientation of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`, in the same form as :meth:`SpaceCenter.Vessel.rotation`. The angle of attack and sideslip follow from this orientation relative to the velocity; the roll component sets the direction of any aerodynamic lift. Pass the vessel's current rotation to evaluate the force at its current orientation. :type rotation: ``[number, number, number, number]`` :returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons, in reference frame :class:`SpaceCenter.ReferenceFrame`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: The position, velocity and rotation arguments, and the returned force, are all expressed in reference frame :class:`SpaceCenter.ReferenceFrame`. The result is the force the vessel would experience if it were placed at that position and orientation with the air flowing past it at that velocity; it is the force at the requested orientation, not the force in the vessel's current orientation. Atmospheric temperature and density are evaluated at the current universal time. .. method:: simulateAerodynamicTorqueAt(body, position, velocity, rotation, angularVelocity) Simulate and return the total aerodynamic torque acting on the vessel about its center of mass, if it were traveling with the given velocity, at the given position, orientation and angular velocity, in the atmosphere of the given celestial body. :param body: The celestial body whose atmosphere the torque is simulated in. :type body: :class:`SpaceCenter.CelestialBody` :param position: The position of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type position: ``[number, number, number]`` :param velocity: The velocity of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type velocity: ``[number, number, number]`` :param rotation: The orientation of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`, in the same form as :meth:`SpaceCenter.Vessel.rotation`. Pass the vessel's current rotation to evaluate the torque at its current orientation. :type rotation: ``[number, number, number, number]`` :param angularVelocity: The angular velocity of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. This adds the solid-body rotation term to each part's local airflow and the per-part rigid-body angular drag the game applies, together giving the aerodynamic damping torque. Pass a zero vector to evaluate the static torque. :type angularVelocity: ``[number, number, number]`` :returns: A vector pointing along the axis of the torque, with its magnitude equal to the strength of the torque in :math:`\mathrm{N \cdot m}`, in reference frame :class:`SpaceCenter.ReferenceFrame`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: The position, velocity, rotation and angular velocity arguments, and the returned torque, are all expressed in reference frame :class:`SpaceCenter.ReferenceFrame`. When Ferram Aerospace Research is installed the angular velocity argument is ignored. Atmospheric temperature and density are evaluated at the current universal time. This is the ideal rigid-body aerodynamic torque, summed from the per-part forces about the center of mass. A vessel may not visibly rotate by the full amount when a large aerodynamic force acts on a small part far from the center of mass, because the game applies each part's force to that part and propagates it through the joints rather than to the vessel as a rigid body. .. method:: simulateAerodynamicWrenchAt(body, position, velocity, rotation, angularVelocity, ut) Simulate and return the total aerodynamic force and torque acting on the vessel, if its center of mass were traveling with the given velocity, at the given position, orientation and angular velocity, in the atmosphere of the given celestial body. :param body: The celestial body whose atmosphere the wrench is simulated in. :type body: :class:`SpaceCenter.CelestialBody` :param position: The position of the vessel's center of mass, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type position: ``[number, number, number]`` :param velocity: The velocity of the vessel's center of mass, in reference frame :class:`SpaceCenter.ReferenceFrame`. :type velocity: ``[number, number, number]`` :param rotation: The orientation of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`, in the same form as :meth:`SpaceCenter.Vessel.rotation`. Pass the vessel's current rotation to evaluate the wrench at its current orientation. :type rotation: ``[number, number, number, number]`` :param angularVelocity: The angular velocity of the vessel, in reference frame :class:`SpaceCenter.ReferenceFrame`. This adds the solid-body rotation term to each part's local airflow and the per-part rigid-body angular drag the game applies, together giving the aerodynamic damping force and torque. Pass a zero vector to evaluate the static wrench relative to the reference frame. :type angularVelocity: ``[number, number, number]`` :param ut: The universal time used for the atmospheric ephemeris. It selects the body/Sun geometry used for temperature and density, but does not change or propagate :class:`SpaceCenter.ReferenceFrame` or any of the state arguments. :type ut: ``number`` :returns: The aerodynamic force, and the aerodynamic torque about the vessel's center of mass. Both are vectors in reference frame :class:`SpaceCenter.ReferenceFrame`. :rtype: :class:`SpaceCenter.Wrench` :Game Scenes: Flight .. note:: The position and velocity describe the hypothetical center-of-mass state. The position, velocity, rotation and angular velocity arguments, and both returned vectors, are expressed in reference frame :class:`SpaceCenter.ReferenceFrame`. For future-state prediction, :meth:`SpaceCenter.CelestialBody.getNonRotatingReferenceFrame` is recommended so that the spatial state has unambiguous inertial semantics. This is an instantaneous rigid-body result based on the vessel's current parts, drag cubes and control-surface state. When Ferram Aerospace Research is installed the angular velocity and *ut* arguments are ignored. .. method:: getLift() The `aerodynamic lift `_ currently acting on the vessel. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: The part of :meth:`SpaceCenter.Flight.getAerodynamicForce` that acts across the air stream and towards the top of the vessel: perpendicular to the air stream, in the plane the vessel's nose and its top sit in. A vessel flying with sideslip is also pushed out of that plane, and that part of the force is :meth:`SpaceCenter.Flight.getSideForce`. Zero for a vessel flying exactly sideways, which has no such plane to speak of. .. method:: getSideForce() The aerodynamic side force currently acting on the vessel. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the force acts, with its magnitude equal to the strength of the force in Newtons. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: The part of :meth:`SpaceCenter.Flight.getAerodynamicForce` that acts across the air stream and out of the vessel's side, which is what the air does to a vessel flying with sideslip. It is perpendicular to both :meth:`SpaceCenter.Flight.getLift` and :meth:`SpaceCenter.Flight.getDrag`, and the three of them sum to :meth:`SpaceCenter.Flight.getAerodynamicForce`. .. method:: getDrag() The `aerodynamic drag `_ currently acting on the vessel. :Property: Read-only, cannot be set :returns: A vector pointing in the direction of the force, with its magnitude equal to the strength of the force in Newtons. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. note:: The part of :meth:`SpaceCenter.Flight.getAerodynamicForce` along the air stream, opposing the vessel's motion through the air. .. method:: getAerodynamicAcceleration() The acceleration of the vessel due to the total aerodynamic forces acting on it (:meth:`SpaceCenter.Flight.getAerodynamicForce` divided by the vessel's mass), in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the vessel is accelerated, with its magnitude equal to the acceleration in :math:`\mathrm{m/s^{2}}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getLiftAcceleration() The acceleration of the vessel due to :meth:`SpaceCenter.Flight.getLift` (the aerodynamic lift divided by the vessel's mass), in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the vessel is accelerated, with its magnitude equal to the acceleration in :math:`\mathrm{m/s^{2}}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getDragAcceleration() The acceleration of the vessel due to :meth:`SpaceCenter.Flight.getDrag` (the aerodynamic drag divided by the vessel's mass), in reference frame :class:`SpaceCenter.ReferenceFrame`. :Property: Read-only, cannot be set :returns: A vector pointing in the direction that the vessel is accelerated, with its magnitude equal to the acceleration in :math:`\mathrm{m/s^{2}}`. :rtype: ``[number, number, number]`` :Game Scenes: Flight .. method:: getSpeedOfSound() The speed of sound, in the atmosphere around the vessel, in :math:`\mathrm{m/s}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getMach() The speed of the vessel, in multiples of the speed of sound. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getReynoldsNumber() The vessels Reynolds number. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. method:: getTrueAirSpeed() The `true air speed `_ of the vessel, in :math:`\mathrm{m/s}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getEquivalentAirSpeed() The `equivalent air speed `_ of the vessel, in :math:`\mathrm{m/s}`. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getTerminalVelocity() An estimate of the current terminal velocity of the vessel, in :math:`\mathrm{m/s}`. This is the speed at which the drag forces cancel out the force of gravity. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getAngleOfAttack() The pitch angle between the orientation of the vessel and its velocity vector, in degrees. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSideslipAngle() The yaw angle between the orientation of the vessel and its velocity vector, in degrees. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getTotalAirTemperature() The `total air temperature `_ of the atmosphere around the vessel, in Kelvin. This includes the :meth:`SpaceCenter.Flight.getStaticAirTemperature` and the vessel's kinetic energy. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getStaticAirTemperature() The `static (ambient) temperature `_ of the atmosphere around the vessel, in Kelvin. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getStallFraction() The current amount of stall, between 0 and 1. A value greater than 0.005 indicates a minor stall and a value greater than 0.5 indicates a large-scale stall. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. method:: getDragCoefficient() The coefficient of drag. This is the amount of drag produced by the vessel. It depends on air speed, air density and wing area. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. method:: getLiftCoefficient() The coefficient of lift. This is the amount of lift produced by the vessel, and depends on air speed, air density and wing area. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. method:: getBallisticCoefficient() The `ballistic coefficient `_. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. method:: getThrustSpecificFuelConsumption() The thrust specific fuel consumption for the jet engines on the vessel. This is a measure of the efficiency of the engines, with a lower value indicating a more efficient vessel. This value is the number of Newtons of fuel that are burned, per hour, to produce one newton of thrust. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. note:: Requires Ferram Aerospace Research. .. class:: Wrench(fields) A force and a torque that act together. .. attribute:: force The force, in Newtons. :Type: ``[number, number, number]`` .. attribute:: torque The torque, in :math:`\mathrm{N \cdot m}`. :Type: ``[number, number, number]``