fix axis direction in render
This commit is contained in:
@ -175,15 +175,12 @@ namespace DroneSimulator
|
||||
|
||||
pos *= Scale;
|
||||
|
||||
pos.X += MainArea.Width / 2;
|
||||
pos.Y += MainArea.Height / 2;
|
||||
|
||||
foreach (var d in DroneList)
|
||||
{
|
||||
if (d.ID != id) continue;
|
||||
|
||||
d.PosXY.X = (int)pos.X;
|
||||
d.PosXY.Y = MainArea.Height - (int)pos.Y;
|
||||
d.PosXY.X = MainArea.Width / 2 + (int)pos.Y;
|
||||
d.PosXY.Y = MainArea.Height / 2 - (int)pos.X;
|
||||
d.Height = (int)pos.Z;
|
||||
|
||||
d.TiltXY.X = tilt.X * TO_RADI;
|
||||
|
Reference in New Issue
Block a user