fix axis direction in render
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user