Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved How to create a two handed pose for Oculus?

Discussion in 'VR' started by gavinprior, Jul 23, 2023.

  1. gavinprior

    gavinprior

    Joined:
    Jul 27, 2020
    Posts:
    42
    Hi All.

    I can create single hand poses (such as thumb up / fist etc) and now want to create a two handed pose - so for example - Left / Right hands open and Palms Up.

    I can't find any reference to this type of pose anywhere and can't figure out how to do this. I've seen quite a few games now using two handed interaction so it must exist(!).

    Many thanks for your help.
     
  2. FilippiniDev

    FilippiniDev

    Joined:
    Oct 12, 2022
    Posts:
    3
    Did you find any solution? I'm trying the same thing
     
  3. FilippiniDev

    FilippiniDev

    Joined:
    Oct 12, 2022
    Posts:
    3
    Okay i think i got it.

    You have to create an empty gameobject and add the same component needed in the single hand pose recognition gameobject (ActiveStateGroup,ActiveStateSelector and SelectorEventWrapper).
    Then you have to assign the ActiveStateSelector in the selector field of SelectorEventWrapper, the ActiveStateGroup in the active state field of ActiveStateSelector and in the ActiveStateGroup add 2 values for the active state and assign the ActiveStateGroup of your single hand pose gameobject (one for the left and the other for the right)
     
  4. gavinprior

    gavinprior

    Joined:
    Jul 27, 2020
    Posts:
    42
    Sorry, as always I forgot to post my solution (oops!). In laymans terms:

    * Create your pose for each hand with all required elements (except for Event Wrapper - not needed here);
    * Create a third pose (call it 'both hands') that has each hands active state group and shape recogniser added to the 'both hands' Active State Group (you just drag and drop your hand poses into here);
    * Add to 'both hand' the Unity Event Wrapper component and run any triggers from here (e'g' When Selected() - play audio/ run a script etc).