ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
357 stars 81 forks source link

Remote role persistency #85

Closed mrstruijk closed 5 years ago

mrstruijk commented 5 years ago

Hi!

How can I make sure that one of the two controllers always has the same role? I would want to put a sticker on one of them saying "Left", and this one is then always the left-hand controller, regardless of in which order I turned them on.

I was thinking I could check by serial number, but then how would I change the controller's HandRole based on that?

Thanks, Maarten

wirelessdreamer commented 5 years ago

see the example: HTC.UnityPlugin/ViveInputUtility/Examples/7.RoleBindingExample

once you bind a role that controller will always have that role.

mrstruijk commented 5 years ago

Thank you!