fix neural api location
This commit is contained in:
11
neural/apis/angle.lua
Normal file
11
neural/apis/angle.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
local Angle = { }
|
||||
|
||||
function Angle.towards(x, y, z)
|
||||
return math.deg(math.atan2(-x, z)), 0
|
||||
end
|
||||
|
||||
function Angle.away(x, y, z)
|
||||
return math.deg(math.atan2(x, -z)), 0
|
||||
end
|
||||
|
||||
return Angle
|
||||
Reference in New Issue
Block a user