Movement and VR Grab Interactable Fixes - Unity3d

We can now grab objects and can now move objects. But a little fun interaction that is also might be a bug depending on your game, is that you can put the object you're carrying under you. Thus in turn makes your character fly (and also gives you a huge headache). 

What's happening is that the object is treated as a ground layer that the character controller can stand on and thus creating a loop of, being able to stand on -> raises character higher -> raises object higher because of hand height and so on.

To fix that we need to do 3 things

1. Add a body layer under layers in the top right corner of unity. Then change only our XR rig with the character controller to the body.



2. Add a grab layer (that's on top of the body layer) onto the grabbable object that you want the player to interact with. via the same method as previously described.

3. Finally under, edit -> project settings -> physics -> Layer Collision Matrix, we want to uncheck the body and grab the layer.



Now we won't have any issues with moving and grabbing objects.