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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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?