mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
ARTY v0.9.91
- Added automatic relocation if not in firing range. - Added first version of ARTY DB with artillery unit parameters min/max firing range.
This commit is contained in:
@@ -1725,7 +1725,7 @@ end
|
||||
--@param Core.Point#COORDINATE a Coordinate.
|
||||
--@param Core.Point#COORDINATE b Coordinate.
|
||||
--@return #number angle Angle from a to b in degrees.
|
||||
function SUPPRESSION:_Heading(a, b, distance)
|
||||
function SUPPRESSION:_Heading(a, b)
|
||||
local dx = b.x-a.x
|
||||
local dy = b.z-a.z
|
||||
local angle = math.deg(math.atan2(dy,dx))
|
||||
|
||||
Reference in New Issue
Block a user