Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a = vector.new(gps.locate())
- local b = vector.new(20, 85, 40)
- local c = a - b
- --displacement in the x direction: c.x
- --displacement in the y direction: c.y
- --displacement in the z direction: c.z
- print(c)
- if x < 0 then
- print("Caller to East")
- else
- print("Caller to West")
- end
- if z < 0 then
- print("Caller to South")
- else
- print("Caller to North")
- end
Add Comment
Please, Sign In to add comment