accidentally forgot to re-define thrustDirections in UpdateGlobalAngularThrust
This commit is contained in:
1
main.lua
1
main.lua
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user