accidentally forgot to re-define thrustDirections in UpdateGlobalAngularThrust

This commit is contained in:
2026-06-27 17:55:02 -05:00
parent 286e7287aa
commit 02b7e64301

View File

@@ -771,6 +771,7 @@ function UpdateGlobalAngularThrust()
desiredAngularThrustVectors[f] = CustomSigmoid(v) desiredAngularThrustVectors[f] = CustomSigmoid(v)
end end
local thrustDirections = {}
for f, v in pairs(desiredAngularThrustVectors) do for f, v in pairs(desiredAngularThrustVectors) do
if f == "wx" then if f == "wx" then
if v > 0 then table.insert(thrustDirections, { pitchdown = v }) else table.insert(thrustDirections, { pitchup = math.abs(v) }) end if v > 0 then table.insert(thrustDirections, { pitchdown = v }) else table.insert(thrustDirections, { pitchup = math.abs(v) }) end