I'm making a raycaster, and the walls are warping. I've tried multiplying by cos(dir) but it just molds all of the world together.

https://scratch.mit.edu/projects/984144000/ (3 zeroes at the end lol)