mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-12 16:57:50 +00:00
Update Utils.lua
#UTILS Small fix
This commit is contained in:
@@ -5521,7 +5521,7 @@ end
|
|||||||
function UTILS.CalculateInterceptBearing(A1, V1, A2, V2_speed)
|
function UTILS.CalculateInterceptBearing(A1, V1, A2, V2_speed)
|
||||||
|
|
||||||
local function berechne_bearing(richtung)
|
local function berechne_bearing(richtung)
|
||||||
local bearing = math.deg(math.atan2(richtung.x, richtung.y))
|
local bearing = math.deg(math.atan2(richtung.x, richtung.z))
|
||||||
if bearing < 0 then
|
if bearing < 0 then
|
||||||
bearing = bearing + 360
|
bearing = bearing + 360
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user