I am working on a doom-like 3D engine, and I understand the physics of it, but I can't figure out rendering. I am trying to make a script that takes in the following variables:
-player position
-player eye level
-player rotation
-wall bottom height
-wall top height
-wall length
-wall midpoint
-wall rotation

I know this is a lot to ask, but I simply cannot figure out how to get rotation and position right. I don't really know where to start with rotation, can anyone help me?