Make the maximal allowed distance for hit-to-plane matching a variable, defaulted to the old hardcoded value.