SpatialPositionIndex<T> constructor
SpatialPositionIndex<T> ({
- 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
SpatialPositionIndex({double cellSize = 256.0}) : _cellSize = cellSize;