VR Development — Day #2

Provide feedback when an object is touched

Jean-Noel Seneque
4 min readJan 24, 2022

In this article, we will expand on the first article by interacting with objects in the world by touching them and when touched, they will highlight. We are also going to first get a grabbing animation happening. Even though it will serve no purpose now, it will set us up for what will come in the next article.

Let’s get started!

Setup hand gripping animation

To give your hands the ability to grip, you will need three components. An animator setup with the gripping animation, VR inputs to trigger the animation, and the code to call when to run the animation.

Firstly, our project needs to set up each of the inputs associated with VR. Luckily for us, we do not need to set all these up. Simple go to Assets > Seed XR Input Binding.

Create a Grabber script

--

--

Jean-Noel Seneque

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