Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RazrDragon's avatar
RazrDragon
Honored Guest
5 years ago

OVR Hand grab button launches the player (without object in hand)

I've followed many videos and tutorials and fixes but none seem to fix the problem I'm experiencing. Most people have been launched back due to the object they grab colliding with the player and pushing them back, however that is not what happens in my case. Whenever I press the grab button even if there is no object in the players hand, depending how close the hand is to the player, the player will launch back. If I decrease the player controller radius, the radius the player can grab without getting launched decreases so I'm assuming it has something to do with more collision issues but I don't quiet know how to fix it. If my description wasn't good enough I can post a video on what's happening too.

Thanks

1 Reply

  • Crs4's avatar
    Crs4
    Honored Guest
    Hello! I had the same problem!
    After reading your post I realized that it is a problem that I have already faced on the HTC-Vive.
    So thank you! And here is my solution:

    Hand colliders are activated when you press the grab button, and if they touch the player's collider they push it back because phisics.
    You can make the player collider smaller to lessen that it happens.
    Alternatively:
    I created two new layers "Player" and "Hands".
    Add Player layer to the OVPPlayerController and childrens
    Add Hands layer to the "l_hand_skeletal_lowres" components of "DistanceGrabHandLeft" and childrens
    Add Hands layer to the "r_hand_skeletal_lowres" components of "DistanceGrabHandRight" and childrens

    Go in the project settings phisics tab.
    Uncheck in layer collision mask the flag where player and hand they cross.