Skip to content

Commit

Permalink
update DefenseB
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-tz committed May 17, 2024
1 parent adf21fe commit b2eaa71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core/tactics/play/TC/TC2024DefenseB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ local RUSH_TASK = function()
minTimePos = targetPos
end
end
local runDir = (minTimePos - player.pos("a")):dir()
return task.goCmuRush(minTimePos,DIR,_,_,Utils.Polar2Vector(2000,runDir))
-- local runPos = minTimePos
local runPos = CGeoLine(ball, minTimePos):projection(player.pos("a"))
local runDir = (runPos - player.pos("a")):dir()
return task.goCmuRush(runPos,DIR,_,_,Utils.Polar2Vector(2000,runDir))
end

return {
Expand Down

0 comments on commit b2eaa71

Please sign in to comment.