Thread:IAmAPersson/@comment-24393165-20140121201522/@comment-14600979-20140122004458

I'm pretty sure you can find some code for a raytracer somewhere, it's kind of the same concept as a raycaster.