In a quick test, I found that raycasts starting from inside spheres hit the sphere the raycast starts in. This is not the same for capsules and boxes. I am assuming the orientation of the collider is irrelevant. So, is this expected behavior?
Thanks,
-Jon