Download

Motion Controller Line Vector Transform

Hey everyone,

So I am in the process of trying to get a line trace drawn out of a motion controller. I have it generally working. The line is coming out and acting as expected, but I’d like it to come out of the top and bottom (small end of the cylinder) not the middle. I have tried to rotate the vector around an axis, but this does not cause the expected behavior.

I have attached some pictures to show the currently working blueprint and the line in VR.

I imagine I need to transform the forward vector (i.e. 1,0,0 to 0,1,0) but I am not sure quite how to do that in Unreal Engine. Could someone point me in the right direction?
Thank you.