1
\$\begingroup\$

When using Unity's XR system, the teleport ray / line renderer I'm stuck on the floor. Turning the XR rig also turns the line, so the line is stuck on 0,0,0 on the XR Rig

I've played with most settings but can't find why the line isn't being translated to the action based controllers position. Using Debug.Log shows the action based position from the controller is correct.

I'm following LevelUp's tutorial on how to create a grab and teleport manager to enable having several action based XR controllers at once.

Disabling the other XR Controller (Action-Based) controllers seems to resolve the issue but I need them enabled to be able to teleport and grab with the same controller.

Has anyone else had this issue? Any tips on troubleshooting or reasons for why this would happen?

Unity Inspector and XRI input actions

Several components

Line Renderer component

\$\endgroup\$
3
  • \$\begingroup\$ Can you show us the configuration of your LineRenderer component? \$\endgroup\$
    – DMGregory
    Jul 20 at 14:16
  • \$\begingroup\$ @DMGregory added image showing Line Renderer \$\endgroup\$ Jul 22 at 7:46
  • \$\begingroup\$ I note that the "use world space" box is ticked. Do you get different results when unticking the box? \$\endgroup\$
    – DMGregory
    Jul 22 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.