Search Unity

Question Controller position is not accurate, offseted by about 0.1

Discussion in 'XR Interaction Toolkit and Input' started by yohai7700, May 14, 2022.

  1. yohai7700

    yohai7700

    Joined:
    Apr 17, 2020
    Posts:
    3
    Hi!
    I'm reading a controller position using the new Input System, using a Vector3 fallback, with the first binding as devicePosition, the pointerPosition.
    I reference the same actions in an XR Controller (Action-based) component. The problem is in the XR Controller, the position is correct, but when I read the position from other scripts the position is offseted by about 0.1 in the X axis, and -0.1 in the Y Axis.
    Does anyone have and idea of why this might happen? It's the same input action used both by the XR Controller and the script that gets wrong values.

    Thanks very much in advance

    `Controller Actual Position: (0.28, 0.94, 0.38), Controller Read Position: (0.20, 0.79, 0.41)`

    upload_2022-5-14_20-37-0.png
     

    Attached Files: