VR Development — Day #3

The ability to grab objects in the VR world

Jean-Noel Seneque
4 min readJan 25, 2022

In this article, we will look at two ways for grabbing an object. First is using Kinematics technique, then have a look at using Fixed Joint technique, and then we will settle on combining the two.

Kinematic Grabbing

This technique is making the grabbed object a child of the hand, making it kinematic during that phase ensures that gravity does not have an influence on it, and if it bumps into something, it won’t fly away.

In the GrabbableObject script, make the following changes.

In the Grabber script, make the following changes. This will check if the grip button has been pressed and call the object's grabbable code.

Setup scene

I am going to into Synty Studios POLYGON Starter Pack — Low Poly 3D Art by Synty. It is free in the Unity Asset Store. Import into the project.

--

--

Jean-Noel Seneque

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com