Hmm, hard to say without more info. Seems odd that something you would use a raycast for would break because of a 0.00001 pixel difference. I do usually start my raycasts a little bit “behind” where you might expect, to make them a bit forgiving.
It’s often helpful to draw some debug lines to match your raycasts.