raycasting is widely used to detect collision. laser beam and enemy in shooting game, que and ball in billiard, enemy sniper sight and wall, and so on. ray tracing is also used in many applications. Camera lens Design, Car light design, cosmic radiation shower simulation, etc... rendering(drawing 3D object in 2D screen) is no more than one of the application.