Why my mouse is clicking with an offset at certain distance?

The only real difference between the way you’re using this and what I’m doing is that I use it for a click drag selection so I am on click storing the world position and world direction in a variable. The first trace locks my starting click and the second one is tracing on tick. The variables do not reset until I let go and click again. See screen shot

below.