Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Oculus index finger raycast

JBivBeatsJBivBeats Posts: 12
NerveGear
Can anyone shed some light on implementing the Oculus hands fingers to shoot a beam out while index finger is extended for selection of ui buttons.  I currently have the selection with a reticle and headset gaze but I would like to be able to use the hands instead to make it more user friendly.  I am using unity 2017.2 Any suggestions would help

Comments

  • MikeFMikeF Posts: 948
    3Jane
    at the bottom of this page https://developer.oculus.com/documentation/avatarsdk/latest/concepts/avatars-sdk-unity/#avatars-sdk-unity theres a section that details how to get transforms for specific joints in the hands, so i'd use that as a raycast start position. Then just check if your index capacitance is either 0 or 1 and disable/enable raycasting acordingly
  • JBivBeatsJBivBeats Posts: 12
    NerveGear
    Thank you for the reply, this is a good starting point
  • domporteradomportera Posts: 1
    NerveGear
    How do you check the index capacitance?
  • alexvilchalexvilch Posts: 38
    Brain Burst
    I have posted this question in other threads, Transform function is not working in Avatar SDK in fact Avatar SDK was not used for Oculus Dash.
    From my understanding to accomplish casting the Ray our of the index finger you would have to go to Animation for the finger and when certain position is reached catch this event and cast the Ray out of the index finger.
    it doesn’t look you can do it with Avatar SDK you would need to customize your hands. You can take distancegrabable hands from distance grab scene from Sample Framework as an example and start from this point.

    Alex
Sign In or Register to comment.