Search code examples
unity-game-engineorientationvirtual-reality

Unity XR Direct Interactor Attach Point without changing the object orientation


I am using the latest XR Toolkit. I have a XR Direct Interactor. I would like to know if there is a way when I pick up an object using this can the objet just retain its current orientation?

It seems to always orient it either to some default orientation or the orientation of an Attach gameobject.

I would like it to not change the orientation of the object you are picking up. Just leave it oriented however it currently is and pick it up.


Solution

  • Two things to try, first uncheck 'Track Rotation'. If that still doesn't work, add an empty object with the desired orientation/position as an offset object under 'Attach Transform'

    enter image description here