Update Drone.cs

This commit is contained in:
2025-07-18 20:46:22 +03:00
parent 9061794bf1
commit 446e45d9df

View File

@ -361,7 +361,7 @@ namespace DroneSimulator
RealPos.Update(PosXYZ, tick);
Vector2 of_xy;
if (range > 0.1) of_xy = new Vector2(SpdXYZ.X / range - Gyr.Y, SpdXYZ.Y / range + Gyr.X);
if (range > 0.1) of_xy = new Vector2(SpdXYZ.X * TO_GRAD / range - Gyr.Y, SpdXYZ.Y * TO_GRAD / range + Gyr.X);
else of_xy = Vector2.Zero;
bool of = RealOF.Update(of_xy, LaserRange, tick);