how raycasting works | ScratchStats