godot_openvr icon indicating copy to clipboard operation
godot_openvr copied to clipboard

Vive wands left and right mixup

Open BastiaanOlij opened this issue 3 years ago • 1 comments

The tracking in OpenVR still uses the old tracking data where for Vive wands we aren't getting info which wand represents the left hand and which the right hand. As a result it is first come, first serve.

All the buttons now use the action based system where we bind our buttons on our left and right hand and we thus get what OpenVR has deemed to be the left and right wands as inputs. If OpenVR thinks a wand is in the left hand, and we think its the right hand, the buttons actions and tracking will be swapped.

It is really weird OpenVR doesn't actually provide hand info when the tracker is added.

We can solve this in two ways

  1. change the tracking over to also use the action system, but that means ARVRController will only support the left and right hands and OpenVRPose needs to be used for any additional trackers
  2. we check what actions the trackers are bound to and try and figure out that way which controller OpenVR has deemed left or right.

The workaround for now is to use OpenVRPose.

BastiaanOlij avatar Dec 22 '20 11:12 BastiaanOlij

Luckily the two wands are identical in shape and size. I have gotten used to juggling them between my hands on startup when it comes in wrong.

goatchurchprime avatar Dec 23 '20 11:12 goatchurchprime