It looks like you're new here. If you want to get involved, click one of these buttons!
getVector = function(source, dist, angle) local a = math.rad(angle) local x = source:getX() + math.sin(a) * dist local y = source:getY() - math.cos(a) * dist return x,y end |