jettero/grm — comment on commit 1e2d1524a496e074e167ceaf716f1549f91e5ea8
File:  line 0
By SineSwiper:

I'm good with math and, with some reference material, I can look at the trigonometry required for 2D angle calculation. But, 3D really makes my head spin. I may just say NEWSUD (3D) mode would disable the visi-calc stuff. As far as LRUD mode, everything would be the same as NEWS mode, except:

1. All closed doors act as normal. (They are basically walls.)
2. LR open doors just fade into the background and basically don't count in the calculation.
3. UD "doors" come in a few varieties, which would need to be specified by the user: unopenable platforms, trap doors, or two-way doors. The latter two would either open to the L side, R side, or fade into the background (the other two "sides"). The LR side openers would count in visi-calc as a blockage, just like NEWS open doors.

So, LRUD should be pretty easy for visi-calc. NEWSUD, on the other hand, adds a third dimension, and I don't even know how the calculations would work there. (Hmmm... according to the basic research into it, though, it looks like we just need to add a Z point to the Pythagorean Theorem...)