When the ray gets in the corners it's a bit laggy and for some reason it doesn't always bounce properly or at all. Any suggestions on how to fix this would be appreciated Move the cursor around to angle the torch and drag it to move it.
Thanks to @griffpatch for the tutorial: https://www.youtube.com/watch?v=Ge1DbXkyMKo