[FIXED] ZONE_POLYGON from RECT ME drawing rotation not taken into account.

This commit is contained in:
smiki 2025-10-01 15:07:18 +02:00
parent f39236c8fd
commit aace98545a

View File

@ -581,8 +581,8 @@ do -- Zones and Pathlines
local sinRot = math.sin(-rotation) local sinRot = math.sin(-rotation)
local cosRot = math.cos(-rotation) local cosRot = math.cos(-rotation)
local dx = w / 2 local dx = h / 2
local dy = h / 2 local dy = w / 2
local points = { local points = {
{ x = -dx * cosRot - (-dy * sinRot) + vec2.x, y = -dx * sinRot + (-dy * cosRot) + vec2.y }, { x = -dx * cosRot - (-dy * sinRot) + vec2.x, y = -dx * sinRot + (-dy * cosRot) + vec2.y },