Dude, you don't need to program a raycasting engine because DBP is already built on top of a (greatly superior to a raycasting) 3d engine...
I don't recommend trying to program a raycasting engine, because, really its outdated and there is no real need. And really it will just confuse you because you don't have a sufficient background in mathematics.
DBP makes it very, very easy to set up a 3d game. All you need to know to make the graphics side of a doom style game in DBP is how to texture and move around plains. Try looking over the 3d command list, and glance over some code snippets and you should pick up on it. It is similar to 2d, really just an extra dimension nothing to freak out about in DBP with all the built in commands.
Searching for files named 'sanity'...
No files were found.