fix(client/zoneCreator): box zone length and width

This commit is contained in:
DokaDoka
2022-09-20 23:31:35 +10:00
parent 30c004b486
commit 6fdc1973e4

View File

@@ -177,10 +177,10 @@ local function startCreator(arg)
local center = vec(xCoord, yCoord) local center = vec(xCoord, yCoord)
---@type vector2[] ---@type vector2[]
points = { points = {
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)), center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2,
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)), center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2,
} }
drawLines() drawLines()