From b7aca18f4c80426f528bc650e1f6bd01437c8a89 Mon Sep 17 00:00:00 2001 From: the lemons Date: Mon, 26 Dec 2022 02:43:02 -0600 Subject: improve collision code --- util.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util.lua') diff --git a/util.lua b/util.lua index a639ca2..24b4214 100644 --- a/util.lua +++ b/util.lua @@ -27,4 +27,8 @@ function M.deepcopy(t) return dc(t) end +function M.rot(a, x, y) + return x*math.cos(a) - y*math.sin(a), x*math.sin(a) + y*math.cos(a) +end + return M -- cgit v1.2.3