For dressing the character we want to let the player grab clothing from the world and throw it onto the character. For this I followed another tutorial from the same person as I followed the other hand tracking tutorials from.
To make grabbing possible you need to do a few things. First of all I wrote the following script which overrides the grab script for controllers so I can use it for hand tracking (to do this I added the virtual keyword to the old script and used override in my own script).
The script checks whether the player is pinching and is not already holding something and there is a grabbable object near. If all of these are true then the player grabs the object.
We (I was sick but Scott took over the finishing touches) also tried to make it so that the player can throw the object, but it did not work because the method we overrided did not work well with hand tracking. The method is supposed to take the last position of the object and compute this with the position of your hand and create a velocity from this, but this did not translate from controller to hand, because the Oculus Integration has a mistake where the lastPos is equal to the current transform.