Crafty.HashMap
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)
See Also
Back to top
Crafty.HashMap.constructor
public void Crafty.HashMap([cellsize])
- cellsize
- the cell size. If omitted,
cellsizeis 64.
Set cellsize.
And create this.map.
Back to top
Crafty.HashMap.key
public Object Crafty.HashMap.key(Object obj)
- obj
- an Object that has .mbr() or _x, _y, _w and _h.
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.

@craftyjs
#crafty@freenode.net
google groups
louis@craftyjs.com
github