Skip to content

Commit

Permalink
fix(client/zoneCreator): box zone length and width
Browse files Browse the repository at this point in the history
  • Loading branch information
DokaDoka committed Sep 20, 2022
1 parent 30c004b commit 6fdc197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resource/zoneCreator/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ local function startCreator(arg)
local center = vec(xCoord, yCoord)
---@type vector2[]
points = {
center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)),
center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)),
center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)),
center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)),
center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)) / 2,
center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2,
center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)) / 2,
center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2,
}

drawLines()
Expand Down

0 comments on commit 6fdc197

Please sign in to comment.