It looks like you're new here. If you want to get involved, click one of these buttons!
local vecDist = function(x, y, tx, ty) --Calculate the distance between 2 vectors local xdiff = x - tx local ydiff = y - ty local dist = (xdiff*xdiff+ydiff*ydiff)^0.5 return dist end |
Likes: gorkem
Comments