For the implementation, I had a lot of trouble trying to eyeball it with Unity-relevant coordinate math, so I ended up writing a conversion system between Quest 64 space <--> Unity space.
This let me use the decomp code almost verbatim, converting first into Quest units and then out as Unity units.