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

It's not just the math. You also have to worry about unexpected rounding and
peculiarities with tiles. Ensuring correctness was by far the hardest
part. The testing took much longer than the actual coding by an order of
magnitude.

--
Message brief, sent from phone.
On Oct 16, 2011 10:31 AM, "Brendan Byrd" <
reply@reply.github.com>
wrote:

> 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...)
>
> --
> Reply to this email directly or view it on GitHub:
>
> https://github.com/jettero/grm/commit/1e2d1524a496e074e167ceaf716f1549f91e5ea8#commitcomment-654391
>