uh yeah i keep forgetting ab pushing these. sorry.
This commit is contained in:
@@ -7,3 +7,11 @@ function math.sign(x)
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
function GetAngleFromVector(x,y)
|
||||
local reduce = 0
|
||||
if x < 0 then
|
||||
reduce = math.rad(180)
|
||||
end
|
||||
return math.atan(y/x) - reduce
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user