ValveSoftware / unity-xr-plugin

OpenVR plugin for Unity's XR API
BSD 3-Clause "New" or "Revised" License
309 stars 64 forks source link

Controllers seem to have a weird offset on Quest 2 Link #63

Closed PixHammer closed 3 years ago

PixHammer commented 3 years ago

Originally posted this on the SteamVR for Unity plugin, but after investigating further i realised this is more likely something to do with the XR plugin that's bundled with it on 2020.1+

Noticed this after moving a project of mine to Unity 2020.1.9f1 from 2019.4, and updated to SteamVR Plugin 2.6.1, figured it could be something with my set up, so tested on a new project with just the steamVR plugin installed running on the Quest 2 link:

The controllers in the steamVR UI and Oculus UI are offset significantly with those in game, tried to figure out approximately how far off these vectors are but it doesn't seem consistent and is relative to the head rotation/position, which would imply there's something funky going on with how the controller positions are assigned, seems like everything is offset by some oddly transformed vector. When i'm facing forward in my play space with my hands in front of me they seem to have an offset of about (0, -0.02, 0.05) in world space to get them to realign with where they should be, but facing the other way this offset isn't correct.

I tested on a Rift S also, and this issue does not occur, controllers seem aligned as they should be. Same goes for either Quest 2 or Rift S on Unity 2019.4

PixHammer commented 3 years ago

Nice! Solved itself as of either the latest SteamVR Client (1.15.10), or the latest Oculus Quest/Link Update (v23), hard to tell which was the remedy, but all good now!