Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function give_angle(cx, cy, tx, ty)
- local x = tx - cx
- local y = ty - cy
- return math.atan2(x, y)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement