I would like to attach together two Grabbed objects.
For this I need to know the gameobjects that are being manipulated so I can add a joint component.
The biggest problem I have at the moment is getting to the gameobjects that are being Grabbed.
I tried using GetGrabbedObject()
but I only get "null".
From my limited understanding :
private GameObject ControllerL
ControllerL = VRTK_DeviceFinder.GetControllerLeftHand(); // this should get me the left hand
GameObject GO;
GO = ControllerL.GetComponent<VRTK_InteractGrab>().GetGrabbedObject(); // this should get me the gameobject Grabbed by the left hand
Anything else I am missing?
This works.
}