Raycasting is a computer graphics technique that casts virtual rays from a point and finds the first place each ray intersects an object in a scene. Scott Roth used the term in 1982 to describe a method for rendering solid models. Unlike ray tracing, which follows reflected and refracted rays, raycasting stops at the first intersection and therefore requires less computation.
In the early 1990s, games such as Wolfenstein 3D used it to draw a 3D-looking view from a 2D map by casting one ray for each vertical column of the screen. In modern game and physics engines it is widely used for line-of-sight tests, collision queries, picking objects with the mouse, and computing 2D lighting and shadows.