Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Local avatar index finger doesn't move

Discussion in 'VR' started by Omerfaruk97, Mar 31, 2022.

  1. Omerfaruk97

    Omerfaruk97

    Joined:
    Oct 8, 2019
    Posts:
    2
    Hello i am new to VR projects. I am using LocalAvatar prefab. It generates hands and controllers. My problem is index finger doesn't move when i touch trigger. It always stay like in the picture below. Thumb moves when i touch buttons but index finger doesn't move. If you know why this is not working or how i can access to animatons of index finger so i can manually activate it, it would be great. Thank you in advance.
    upload_2022-4-1_0-46-22.png
     
  2. kontakt_unity924

    kontakt_unity924

    Joined:
    Aug 8, 2020
    Posts:
    5
    In OvrAvatarLocalDriver.cs GetControllerPose method, change this line
    Code (CSharp):
    1. if (!OVRInput.Get(OVRInput.NearTouch.PrimaryIndexTrigger, controller)) touches |= ovrAvatarTouch.Pointing;
    to this
    Code (CSharp):
    1. else touches |= ovrAvatarTouch.Pointing;
     
    LuLusg likes this.