Search Unity

OVR Grabbing

Discussion in 'VR' started by GFG_NnC, Jul 28, 2019.

  1. GFG_NnC

    GFG_NnC

    Joined:
    Jun 14, 2019
    Posts:
    2
    Hi, so I'm trying to make a handle (something to hold on to), that I can grab so that the VR hand doesnt move as long as you hold the Grab-buttons down even when you move the controller.. I want to use it to create the illusion of stability. But I have no idea how to accomplish something like this. When I create an object (a capsule for example) and I then add an OVR Grabbable to it I cant hold on the capsule. How could I do this?
     
  2. V-J

    V-J

    Joined:
    Apr 1, 2015
    Posts:
    73
    If i understand your question correctly, add an rigidbody and a collider to the gameobject.
     
    Last edited: Jul 29, 2019
  3. GFG_NnC

    GFG_NnC

    Joined:
    Jun 14, 2019
    Posts:
    2
    Nope, this way my VR-Hand still moves when I move my RL-Hand... I want my VR-Hand to stay where it is while grabbed
     
  4. V-J

    V-J

    Joined:
    Apr 1, 2015
    Posts:
    73
    Maybe you can make the grabbed object static, or make a script that will get the transform when your hand is in a certain distance of the grabbed object.