From the course: AR Development Techniques 02: Lighting and Physics

Unlock the full course today

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

Scale and rotate gestures

Scale and rotate gestures

From the course: AR Development Techniques 02: Lighting and Physics

Start my 1-month free trial

Scale and rotate gestures

- [Instructor] In this video we'll see how to implement scale and rotate functionality for the car model. We'll be using a free package known as Lean Touch to implement this functionality. So let's download Lean Touch from the asset store. So go to the asset store and search for Lean Touch. We want the free package. Download it and then import it, import. After it's imported, instantiate the Lean Touch object in the hierarchy. Right-click, Lean Touch. The Lean Touch package provides scripts for various onscreen gestures. So to scale the car object, we are going to add a script to our car object. And that will be lean bench scale. And make the required finger count to two. Now you will be able to use the pinch to zoom or scale gesture to increase or decrease the size of the car object in the AR scene. Now to rotate the car object, we are going to add the lean twist rotate script. Just type in lean twist rotate…

Contents