summaryrefslogtreecommitdiff
path: root/hole.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-06-28 00:33:33 +0100
committerubq323 <ubq323@ubq323.website>2022-06-28 00:33:33 +0100
commit07ff4f5e9d3a12f27f1cb20bd7666d2e9dcece08 (patch)
treeb69d19c8852385d1a483e6b5744a086255a22ba1 /hole.lua
parent6983d873e5533297b10972184f129574c53f12e1 (diff)
hole
Diffstat (limited to 'hole.lua')
-rw-r--r--hole.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/hole.lua b/hole.lua
index c8b55fa..e7ba95f 100644
--- a/hole.lua
+++ b/hole.lua
@@ -2,7 +2,7 @@ local function yaw_pitch(xoff,yoff,zoff)
local yaw = -math.deg(math.atan2(xoff,zoff))
local perp_dist = math.sqrt(xoff*xoff+zoff*zoff)
local pitch = -math.deg(math.atan2(yoff, perp_dist))
- return yaw,pitch
+ return yaw,pitch+2.5
end
local scanner = assert(peripheral.wrap"right")