From 7c0cd566b1e40c21db19ee9c93f995f5852ad36a Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 22:15:01 -0500 Subject: [PATCH] change the UpdateGlobalThrust thrust nomalization to actually have a contiguous range of values --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 2ae17c8..65cc27c 100644 --- a/main.lua +++ b/main.lua @@ -937,7 +937,8 @@ function UpdateGlobalThrust() end -- Normalize the desired thrust to be between 0 and 1 - local normalizedThrust = math.max(0, math.min(1, (desiredThrust + 1) / 2)) -- Convert from [-1, 1] to [0, 1] + local normalizedThrust = CustomSigmoid(desiredThrust) + if normalizedThrust < 0 then normalizedThrust = 0 end if Config.Debug then print("DEBUG: "..thruster.name..": desiredThrust "..desiredThrust..", normalizedThrust "..normalizedThrust) end