Broad-phase collision detection engine. See background information at
- [N Tutorial B - Broad-Phase Collision](http://www.metanetsoftware.com/technique/tutorialB.html)
- [Broad-Phase Collision Detection with CUDA](http.developer.nvidia.com/GPUGems3/gpugems3_ch32.html)
public void Crafty.HashMap([cellsize])
cellsize
is 64.Set cellsize
.
And create this.map
.
public Object Crafty.HashMap.key(Object obj)
Get the rectangular region (in terms of the grid, with grid size cellsize
), where the object may fall in. This region is determined by the object's bounding box.
The cellsize
is 64 by default.