Grabbing Things the Right Way (in VR)

--

Making the gun grabbable is one thing. But with a specific item comes a specific way you should hold it.

To make grasping the gun more natural, I created an empty object called AttachPoint.

Unity editor AttachPoint usage

This empty object stands as a transform place holder to match the users hands at a specific point whenever they grab interact with the gun. To implement it, I first turned off Dynamic Attach and instead put the new AttachPoint in the Attach Transform field in the XR Grab Interactable script.

I then adjusted the X position a little:

And the Y position a little:

And now grabbing the gun is a lot more natural looking (and also easier to aim).

--

--