BoxWorld.enableGrid

void enableGrid(Sz rowCount, Sz colCount, int tileWidth, int tileHeight, IStr file = __FILE__, Sz line = __LINE__) @safe nothrow

Enables the spatial grid. A box is stored in the grid cell of its top-left corner and collision checks look at the 3x3 cells around it. The tile size should be at least as big as the biggest box, or some collisions will be missed.