I've been having a problem with inaccuracies in my ray casting algorithm for detecting mouse hits within a box. I'm …