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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Are constrained objects grabbable (from OVR Grabber - OVR Grabbable)?

Discussion in 'Animation Rigging' started by basilwort5, Feb 16, 2020.

  1. basilwort5

    basilwort5

    Joined:
    Jan 1, 2020
    Posts:
    31
    I have found with a an arm, using the Animation Rigging preview package, the rigging works great when moving the Source - Target in the Editor. However, when I make the leaf (or tip) a grabbable object so my Quest Controller can grab it and move the arm with the rigging, it does not work so well. It looks like I can move the grabbable a short distance, then it does not follow the grabber. And after a few grab-and-releases, the grabbable can no longer be grabbed (usually around 10 cycles). An example use case would be like I want to grab and shake hands with a robot -- his hand will move because I grabbed it, and his arm will move in accord with his hand from the IK rigging.

    My set up, with Two Bone Constraint:
    - add a RigBuilder to the character (followed instructions from the docs)
    - add a set of Rig Constraint objects (followed instructions from the docs)
    ---- Constraints
    ------ ArmTarget
    ------ ArmHint

    On ArmTarget, I've added a OVR Grabbable component, a RigidBody, and a CapsuleCollider, same as I would set up a cube or sphere to be grabbale and throwable.

    Is this interaction expected to work? I looked through the source, but could not find where it is going wrong. I don't know if the rig and the grab scripts compete with each other, or of the rig takes precedence, or if the event messaging between the controller is being interrupted, or other ?
     
    Last edited: Feb 16, 2020
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    Hi, unfortunately I have very little insight to share on the matter as we haven't experimented much with VR and Animation Rigging.

    I know it works though. I've even seen people doing tutorials on it:


    I don't see how Animation Rigging could interfere with the OVR Grabbable component. If you disable animation rigging altogether (by just toggle the RigBuilder checkbox), do you still have the same issue?

    Otherwise, I would try asking in the VR sub forum, they might have better insight.
     
  3. ISA2937

    ISA2937

    Joined:
    Jun 14, 2020
    Posts:
    1
    I have a same problem.
    When a cube that have OVR Grabbable is on top layer of hierarchy, works.
    But when the cube is on vehicle, doesn't work.
     

    Attached Files:

    • bugg.png
      bugg.png
      File size:
      19.3 KB
      Views:
      256