Skip to content

Commit 12fb80d

Browse files
committed
Removed leftover code
1 parent 63a84dd commit 12fb80d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scripts/ai/strategies/AIDriveStrategyShovelSiloLoader.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,10 @@ function AIDriveStrategyShovelSiloLoader:searchForTrailerToUnloadInto()
552552
if dx > 0 then
553553
local x, y, z = localToWorld(trailer.rootNode, math.abs(distShovelDirectionNode) + self.distShovelTrailerPreUnload, 0, 0)
554554
setTranslation(self.unloadPositionNode, x, y, z)
555-
dirX, dirZ = MathUtil.getDirectionFromYRotation(yRot - math.pi / 2)
556555
setWorldRotation(self.unloadPositionNode, 0, yRot - math.pi / 2, 0)
557556
else
558557
local x, y, z = localToWorld(trailer.rootNode, -math.abs(distShovelDirectionNode) - self.distShovelTrailerPreUnload, 0, 0)
559558
setTranslation(self.unloadPositionNode, x, y, z)
560-
dirX, dirZ = MathUtil.getDirectionFromYRotation(yRot + math.pi / 2)
561559
setWorldRotation(self.unloadPositionNode, 0, yRot + math.pi / 2, 0)
562560
end
563561
if trailer["spec_pdlc_goeweilPack.balerStationary"] or trailer.size.length < 4 then

0 commit comments

Comments
 (0)