The most common scenario with AR Development is having object interaction. Object interaction used by most of the developers to give more access to the user. Users can control objects in the AR World by touching around the screen and use some gestures.
ARFoundation is a package in unity which allow us to create interactive AR Application for android and iOS.
NOTE: This project is required fundamental knowledge of ARFoundation is required to starting out. You can find out the sample project link below.
Every AR project some basic functionality like below,
XR interaction toolkit allows us to manipulate the AR objects using touch interaction. The toolkit includes various gestures like,
- Elevation (Bonus!)
This interactable allows us to place virtual objects in the real world. After that we can use object hovering, grabbing, selection, and much more.
Placement interaction used to place the object in the real world using the plane manager and the raycast manager.
However, there are some other things to consider while place an object in the real world is anchor, an anchor is a particular point in the world to which we can attach our object to stick with it. Therefore, if anything updates in the real world anchor, it will instantly reflect in our object.
In addition, the virtual object in the real world must be looking like a real object. To which we need light estimation and the real time object shadow, which gives object a real world touch and feel.
In other words, Universal render pipeline help us to achieve high performance real time shadow and gives us a real time experience.
Similarly, we have built in render pipeline to which we can also achieve the things like shadow and light estimation. But if you compare both rendering pipeline, URP gives us a best rendering experience.
Find full project on github.