Physics.Raycast(originPos, (targetPos - originPos), out hit, masks.VisibilityCastMask);
My raycast line
The mask in question is: public static LayerMask VisibilityCastMask = 65535;
By my understanding, this should hit layers 0-15, and ignore objects on all subsequent layers. My player object (and all children) is on layer 17, but it is still blocking this raycast.