From 8ca79d66032fa0e633905723719e86b9a1bb9800 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Thu, 26 Jan 2023 17:16:00 -0500 Subject: [PATCH] make partitions smaller to increase speed --- collision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collision.py b/collision.py index 4fd35d3..ff67a66 100644 --- a/collision.py +++ b/collision.py @@ -148,7 +148,7 @@ def remove_duplicates(arr1, arr2): def spacePartitioning(particle_list, width, height): # broad phase collision detection - n = 3 + n = 25 grid = [[[] for _ in range(n)] for _ in range(n)] -- 2.54.0