mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
[FIXED] ZONE_POLYGON from RECT ME drawing rotation not taken into account.
This commit is contained in:
@@ -579,8 +579,8 @@ do -- Zones and Pathlines
|
|||||||
local h=objectData.height
|
local h=objectData.height
|
||||||
local rotation = UTILS.ToRadian(objectData.angle or 0)
|
local rotation = UTILS.ToRadian(objectData.angle or 0)
|
||||||
|
|
||||||
local sinRot = math.sin(-rotation)
|
local sinRot = math.sin(rotation)
|
||||||
local cosRot = math.cos(-rotation)
|
local cosRot = math.cos(rotation)
|
||||||
local dx = h / 2
|
local dx = h / 2
|
||||||
local dy = w / 2
|
local dy = w / 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user