Hello Gasric,
I have an example that may help. This is a line trace that uses the mouse’s screen position to find the location under the mouse. You can use the hit result to get the location that you need. I hope that this helps.
Make it a great day