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 --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 619b5ec..31225fa 100644 --- a/main.lua +++ b/main.lua @@ -19,7 +19,7 @@ local selection for i = 1, 100 do obj.new("test", {math.random() * 1000 - 500, math.random() * 1000 - 500}, { avel = math.random() * 0.5 - 0.25, - vel = {math.random() * 0.5 - 0.25, math.random() * 0.5 - 0.25} + vel = {math.random() * 1 - 0.5, math.random() * 1 - 0.5} }) end -- cgit v1.2.3