Grabbing the (VR) World with Both Hands
Nov 27, 2023
In this article, we’ll be looking at how to grab objects with both hands in the VR world.
We’ve been using only revolver so I’ve added a shotgun to our arsenal.
The first thing that we need to do is to create a two objects as the attach transforms for the shotgun.
Next, add an XR Grab Interactable component to the gun, select “Multiple” for the Select Mode property.
Finally, let’s make sure we have some colliders for the new gun. I’m gonna create one collider for the barrel and one for the handle.
Also, let’s drop them into the Colliders section.
And you should now be able to grab the shotgun with two hands.