Run unity project to see visualization of Physics2D.BoxCastAll(Rect.center, Rect.size, Rotation, Direction, Distance) method Rectangle move by custom direction with rotation and hit some gameobject (mini rects with cross)