Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Duncan's avatar
Duncan
Protege
8 years ago

How to get the 3D positions of the button on the controllers

Hi All,
Is there a way to obtain the 3D positions of the button on the Touch Controllers?
Can someone post a link to the API documents that do this? Or any other reference.

I would like to be able to draw little text labels over the top of the buttons.

Thanks.

2 Replies

  • Yoirgl's avatar
    Yoirgl
    Start Partner
    I'm not an expert but if I had to guess,  I would suggest you take avatars, show controller and manually place your icons as child of the hand in play mode to get the coordinates right compared to hand position.
    ¯\_(ツ)_/¯
    I doubt there's anything in the api to give you precise button position.

    Yoirgl
  • In the end I used the Pose joint hierarchy. With some extra transforms applied to the triggers so the labels did not appear in an odd place.