View Single Post
whats wrong with this function, i know i went wrong with my maths somewhere, but im not too sure where >.>
function get_angle(x1,y1,x2,y2)
    angle = math.atan2(x1-x2,y1-y2)
    return angle
end
:D