Skip to content

Commit bf1b610

Browse files
authored
Update PathfinderUtil.lua
Might fix #1179 - looks like a typo to adding/subtracting the offset
1 parent 4a9f7db commit bf1b610

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/pathfinder/PathfinderUtil.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function PathfinderUtil.VehicleData:init(vehicle, withImplements, buffer)
6868
-- for implements which are not centered on the hitch point, such as bale wrappers in the working position
6969
towedImplementSideOffset, _, _ = localToLocal(inputAttacherJoint.node, self.towedImplement.rootNode, 0, 0, 0)
7070
dLeft = dLeft - towedImplementSideOffset
71-
dRight = dRight - towedImplementSideOffset
71+
dRight = dRight + towedImplementSideOffset
7272
end
7373
else
7474
self.hitchOffset = self.dRear
@@ -749,4 +749,4 @@ end
749749

750750
function PathfinderUtil.debug(vehicle, ...)
751751
CpUtil.debugVehicle(CpDebug.DBG_PATHFINDER, vehicle, ...)
752-
end
752+
end

0 commit comments

Comments
 (0)