Linetrace to detect static mesh component on same actor

I’m trying to make an interactable component for my VR game and came up with the idea to use the normalised value of a mesh using the bounds of another mesh which works great. The issue I’m having is keeping that mesh within the defined bounds.

Initially I came up with clamping the x and y values and this worked great, until I rotated the defining mesh, or when I want to switch the mesh to one that doesn’t have clean boundaries. I came up with the idea of doing a linetrace every time it moves to check if it is still on the mesh, and keep it on the edge if it wants to go beyond that.

The problem with this approach is that I don’t know how to perform a linetrace to check for a component on the same actor, or if this is a better way to approach this problem?