karelvysinka

gps 2 turtle

Nov 1st, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1.  local home = vector.new(45, 85, 20)
  2.  local position = vector.new(gps.locate(5))
  3.  local displacement = position - home
  4.  
  5.  print("I am ", tostring(displacement), " away from home!!!")
Add Comment
Please, Sign In to add comment