spaces->tab, equipper improvements, supertreefarm rewrite, follow improvements, sensor cleanup, milo multiple items allowed in recipes, remote canvas access
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
local Angle = { }
|
||||
|
||||
function Angle.towards(x, y, z)
|
||||
return math.deg(math.atan2(-x, z)), math.deg(-math.atan2(y, math.sqrt(x * x + z * z)))
|
||||
return math.deg(math.atan2(-x, z)), math.deg(-math.atan2(y, math.sqrt(x * x + z * z)))
|
||||
end
|
||||
|
||||
function Angle.away(x, y, z)
|
||||
return math.deg(math.atan2(x, -z)), 0
|
||||
return math.deg(math.atan2(x, -z)), 0
|
||||
end
|
||||
|
||||
return Angle
|
||||
|
||||
Reference in New Issue
Block a user