Search Unity

Question XRSocketInteractor and letting go of a GameObject programmatically

Discussion in 'VR' started by missedAgain77, Jul 31, 2020.

  1. missedAgain77

    missedAgain77

    Joined:
    May 12, 2020
    Posts:
    1
    I have a simple scene where I drop a GameObject (instance of a prefab) on a socket. The OnSelectEnter event does a comparison of some attributes then either Destroys it or tells the GO to move from the socket to another position using Vector3.MoveTowards().

    Currently as the GameObject completes its move, it snaps back to the socket position and remains there.

    Does the socket need to be told to let go of the GameObject so the GO can stay in the new position and if so how?

    Thank-you in advance.

    Using 0.9.4 of the Interaction Toolkit.