- Change 'Mission_Init.lua' to use my on 'Airboss' functions.

- Finish 'turnIntoWind' function for 'BAirboss'.
- Add 'Utils.lua' for some support functions.
This commit is contained in:
2024-12-16 19:57:08 +08:00
parent 31ad2440de
commit e90707e0cf
4 changed files with 186 additions and 16 deletions
+16 -1
View File
@@ -1,6 +1,21 @@
Utils = {}
do
function Utils.vecTranslate(vec3,degree,distance)
local point = {x = vec3.x,y = vec3.z or vec3.y,}
if distance == 0 then return point end
local radian = math.rad(degree)
point.x = point.x + distance * math.cos(radian)
point.y = point.y + distance * math.sin(radian)
return point
end
--- Converts a TACAN Channel/Mode couple into a frequency in Hz.
-- @param #number TACANChannel The TACAN channel, i.e. the 10 in "10X".
-- @param #string TACANMode The TACAN mode, i.e. the "X" in "10X".
@@ -39,6 +54,6 @@ do
end