How to only move a component in a single vector, With the Motion controller

I have a pick Up object BP that I can pull a part off with the other hand , But currently its just snapping to the hand.
What I would really like to do is be able to slowly pull the part away with the other hand, and have the part only be able to move in its X Vector until the limit I want is reached.
Anyone know How to do this?
I came across this post but its not really working either
https://answers.unrealengine.com/questions/540322/vr-how-to-grab-object-and-move-it-only-in-z-axis.html

Through Trial and error I managed to Solve it By getting the world locations of the second hand and the mesh part and combining them with a (vector-vector). Breaking the struct pin and Only connecting the X .
But I have zero Idea what its actually doing, or how it works . cant seem to find Info on it either. :frowning: