Announcement

Collapse
No announcement yet.

Motion Controller Line Vector Transform

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.
    Last edited by MushinZero; 03-07-2018, 07:05 PM.

    #2
    After you multiply the Forward Vector by 3000, you need to add the result to Get World Location (Start) to get the line trace End point.
    CTO | Head of VR Development - Visit us at http://humanxr.com
    My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

    Comment


      #3
      This does not resolve this issue. I need to rotate the vector so it comes out the small end of the cylinder.

      Edit: Get Up Vector solves this
      Last edited by MushinZero; 03-13-2018, 05:17 PM.

      Comment

      Working...
      X