Help on learning raycasting

So I’ve been wanting to learn raycasting for a while now and was wondering if anyone could help me with that by giving me some tips or explaining it.

Any help is very much appreciated.

Hey. I would suggest reading this and watching a youtube video on the topic: