Raycast 2d Unity Tutorial, Any object making contact with the beam can be detected and reported.