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.

Question XR Interaction Toolkit 2.0.3 - Object Grab issue using attach transform

Discussion in 'VR' started by niranjanshukla, Sep 20, 2022.

  1. niranjanshukla

    niranjanshukla

    Joined:
    Sep 20, 2022
    Posts:
    9
    I am using Unity 2022.1.14f1 and XR Interaction Toolkit 2.0.3. Using Oculus Quest.

    Requirement: I would like to grab the CapsuleCylinder object from the Top only. Therefore, I am placing an empty gameobject at the top of the capsule cylinder and setting it as attach transform.

    Issue: I can't get attach transforms to work. This is impeding me from further testing any custom script for a two handed grab. This does not work with even the built-in XR Grab Interactable as shown.

    Steps:
    1. Created an empty gameobject and placed it at a location where I would like to grab.
    2. Dragged it into the Attach Transform field of the Interactable in settings.

    Observation: Regardless of placing the attach transform, my 3D object only gets grabbed at a certain point. Am I missing something? Would appreciate some help.
     

    Attached Files:

  2. niranjanshukla

    niranjanshukla

    Joined:
    Sep 20, 2022
    Posts:
    9
    Is anyone able to advise?