Search Unity

Bug Zero AngularVelocity and Velocity on OpenXR HMD After entering playmode for the second time.

Discussion in 'XR Interaction Toolkit and Input' started by fstorehaug, Apr 4, 2023.

  1. fstorehaug

    fstorehaug

    Joined:
    Apr 3, 2017
    Posts:
    10
    Hey, I'm having an issue where the angular velocity and Velocity input is always zero in my XR project. I recreated the problem in an empty project, The first time I hit play it seemed to work, but the second time we were back to 0,0,0 values for all the velocity vectors.

    upload_2023-4-4_10-38-48.png

    The setup is simple, it's an empty project with the sample scene running.
    Unityversion: 2021.3.15f1
    InputSystem: 1.4.4
    XRPluginManagement: 4.2.1
    OpenXR Plugin: 1.5.3

    I'm using SteamVR to run a valve Index headset.

    Added a zip of the project I used to test the issue. When the libs are regenerated the issue stops occurring until you hit play for a second time. So the repo case is: hit play, check the values - they are fine, hit the play button to stop, hit play again - velocities are zero.

    I don't know if this is an editor-only issue.
     

    Attached Files: