Update Drone.cs
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user