Skip to content

Commit

Permalink
Reversing typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaiko committed Dec 29, 2021
1 parent dcf843d commit 1b05b6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ai/AIReverseDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ AIReverseDriver = CpObject()
---@param course Course
function AIReverseDriver:init(vehicle, ppc)
self.vehicle = vehicle
self.settings = vehicle:getCpSettings()
---@type PurePursuitController
self.ppc = ppc
-- the main implement (towed) or trailer we are controlling
Expand Down Expand Up @@ -144,7 +145,7 @@ function AIReverseDriver:getDriveData()
local gx, _, gz = localToWorld(self.vehicle:getAIDirectionNode(), lx, 0, lz)
DebugUtil.drawDebugLine(gx, ty, gz, gx, ty + 3, gz, 1, 0, 0)
-- TODO_22 reverse speed
return gx, gz, false, self.vehicle.settings.reverseSpeed:getValue()
return gx, gz, false, self.settings.reverseSpeed:getValue()
end

function AIReverseDriver:getLocalYRotationToPoint(node, x, y, z, direction)
Expand Down

0 comments on commit 1b05b6c

Please sign in to comment.