I did that as well, thanks for pointing that out. Since mouse_dir3d.z should never be positive (I'm 'tracing' down to a flat plane at z=0 and the camera is always higher than z=0) I simply filtered out anything that is not facing down.