From the course: AR Development Techniques 03: Recognition and Tracking

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Hand tracking gestures

Hand tracking gestures

From the course: AR Development Techniques 03: Recognition and Tracking

Start my 1-month free trial

Hand tracking gestures

- [Instructor] In this video, we'll write some code to implement three hand gestures. That is the grab gesture, to grab and move the virtual object, pinch gesture to rotate the object, and click gesture to change the texture of the object. First, let's create a virtual planet object. For that we need to create a sphere, right click 3d object, sphere. Reset it and change the scale to 0.4, because we don't want it too big. Let's decrease the size of these gizmos, and let's bring this in front of the camera. Now, the way we will implement these gestures is that there needs to be a trigger to activate the gestures. To activate the gestures, we'll have to place our hand inside the object, which is this one, and then perform these gestures for them to work. We created this hand collider box object in the previous video, and as you saw, this object moves along with our hand. So we'll write some code to check when this…

Contents