From d3c3b013ff25bd9b1ff4ef45ee08184db20c2ac4 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Fri, 25 Jul 2025 23:40:06 +0300 Subject: [PATCH] incorrect rotation direction --- DroneSimulator/Screen2D.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DroneSimulator/Screen2D.cs b/DroneSimulator/Screen2D.cs index f3fbf68..455fc4c 100644 --- a/DroneSimulator/Screen2D.cs +++ b/DroneSimulator/Screen2D.cs @@ -101,6 +101,7 @@ namespace DroneSimulator private static Bitmap DrawImageByQuaternion(Bitmap bmp, Quaternion orientation) { if (bmp == null) return null; + orientation.X = -orientation.X; int canvasSize = (int)System.Math.Sqrt(bmp.Width * bmp.Width + bmp.Height * bmp.Height); Bitmap result = new Bitmap(canvasSize, canvasSize);