Now I need a way to get the parts in every cell and insert those parts into the grid cell table, the table is like this: self.Grid[cell pos] = { cell parts here }
Hm, spatial queries is a great method, and I don’t think any method at all would be able to handle that many cells at once without causing lag. Maybe make an Octree system to get just the nearest cells and get the parts inside those?
I mainly just use GetPartsInPart, don’t know if that method has a size limitation, but making it just one big part theoretically should still require some resources, maybe make a test and see what works best for you.