fix axis direction in render

This commit is contained in:
2025-07-25 23:28:27 +03:00
parent c0a5c1c349
commit bee4b7fc75

View File

@ -175,15 +175,12 @@ namespace DroneSimulator
pos *= Scale; pos *= Scale;
pos.X += MainArea.Width / 2;
pos.Y += MainArea.Height / 2;
foreach (var d in DroneList) foreach (var d in DroneList)
{ {
if (d.ID != id) continue; if (d.ID != id) continue;
d.PosXY.X = (int)pos.X; d.PosXY.X = MainArea.Width / 2 + (int)pos.Y;
d.PosXY.Y = MainArea.Height - (int)pos.Y; d.PosXY.Y = MainArea.Height / 2 - (int)pos.X;
d.Height = (int)pos.Z; d.Height = (int)pos.Z;
d.TiltXY.X = tilt.X * TO_RADI; d.TiltXY.X = tilt.X * TO_RADI;