neural look

This commit is contained in:
kepler155c@gmail.com
2019-03-13 17:53:49 -04:00
parent 81a7894037
commit a0a92818d6
4 changed files with 38 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
local Angle = { }
function Angle.towards(x, y, z)
return math.deg(math.atan2(-x, z)), 0
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)