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 Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question xr grab interactable returning to original transformation when activated

Discussion in 'VR' started by kmilo9999, Mar 3, 2022.

  1. kmilo9999


    Oct 20, 2016
    Hello all,

    I have a Game object with a box collider, rigid object and xr grab interactable components, and it's child posses a 3D mesh. When I grab the parent with the xr controller I can rotate and move it around. After releasing the object, it keeps the new transformation.
    However, when I grab it again, it comes back to the original transformation. how can I avoid that behaviour? I tried using the "attach transformation" option in the XR grab interactable component, but when I grab the object a second time, then the object comes back to that specific transformation.
    I dont see any more options in the editor to disable that behavior, so I assume I have to write the script. Am I right?

    Any help is much appreciated.
  2. sasasamb


    Mar 19, 2020
    I have also noticed this problem and were wondering if there was a method. I’ll be waiting too :)
  3. hassancortex


    Oct 27, 2019
    I wrote a script that helped me solve this using SteamVR. However, with Oculus XR I'm still looking for the 'on release Hand' alternative to defining object behaviour.