hash grid and AABB detection