Added aabb array and raytrace check.