Multiple sockets on single gameobject

Hi everyone,

I am working on a simulator project that involves connecting hoses together using the XR Interaction Toolkit. The hoses have male and female connectors, and I have been using Socket Interactors on the female connectors and Grab Interactables on the male connectors. This works fine for simple cases, but I have some issues with more complex scenarios.

In my project, there are also some special equipment that have multiple connectors of the same type, such as dividers and collectors. Dividers have one male and two female connectors, and collectors have two male and one female connector. I want to be able to connect and disconnect these equipment to the hoses using the XR Interaction Toolkit, but I have not found a way to do this properly. When connected to sockets, I still want to be able to grab the object (and connected objects) to move them around.

I have tried several approaches, but none of them worked as expected. Here are some of the things I have tried:

  • Creating children for each of the connectors, and assigning the interactor or interactable to the child. This did not work because when the interactable was interacted with, it was removed as a child and the main object did not react accordingly.
  • Extending the Grab and Socket classes for each type of coupling, and using custom interaction managers and layers to control the connections between different types of couplings. This did not work either.

I am wondering if anyone has any suggestions or solutions for this problem. How can I use the XR Interaction Toolkit to connect hoses with multiple connectors of the same type? Is there a better way to implement this functionality?

Any help or advice would be greatly appreciated. Thank you in advance.

Hi, I’m facing the same problem, I know this post is super old but did you have any luck figuring it out?