SpatialBoundaryIndex<T> constructor

SpatialBoundaryIndex<T>({
  1. double cellSize = 256.0,
})

Creates a new spatial index with the specified cell size.

cellSize Size of each grid cell in logical pixels (default: 256.0) Smaller cells provide more precise collision detection but use more memory

Implementation

SpatialBoundaryIndex({double cellSize = 256.0}) : _cellSize = cellSize;