diff --git a/Sources/Sandbox.Common/ModAPI/Ingame/IMyThrust.cs b/Sources/Sandbox.Common/ModAPI/Ingame/IMyThrust.cs index 9ea8ef688..9318987fd 100644 --- a/Sources/Sandbox.Common/ModAPI/Ingame/IMyThrust.cs +++ b/Sources/Sandbox.Common/ModAPI/Ingame/IMyThrust.cs @@ -17,6 +17,11 @@ public interface IMyThrust: IMyFunctionalBlock /// float MaxThrust { get; } + /// + /// Gets the maximum effective thrust amount, in Newtons (N) + /// + float MaxEffectiveThrust { get; } + /// /// Gets the current thrust amount, in Newtons (N) /// diff --git a/Sources/Sandbox.Game/Game/Entities/Blocks/MyThrust.cs b/Sources/Sandbox.Game/Game/Entities/Blocks/MyThrust.cs index 1f60ca71b..bb573b883 100644 --- a/Sources/Sandbox.Game/Game/Entities/Blocks/MyThrust.cs +++ b/Sources/Sandbox.Game/Game/Entities/Blocks/MyThrust.cs @@ -695,6 +695,14 @@ float Sandbox.ModAPI.Ingame.IMyThrust.MaxThrust } } + float Sandbox.ModAPI.Ingame.IMyThrust.MaxEffectiveThrust + { + get + { + return BlockDefinition.ForceMagnitude * m_thrustMultiplier * m_thrustComponent.GetLastThrustMultiplier(this); + } + } + float Sandbox.ModAPI.Ingame.IMyThrust.CurrentThrust { get