In our last chapter, we used both Cloud Points and Generated Planes to help the camera track the movement of the device. However, you may have noticed that our amazing cube continued to stay at the point of origin. While this may be okay for our first AR App, I’m sure in time you might want to create virtual objects that appear to be located on a physical object in the real world. To do this, we are going to use a feature of the Unity ARKit called hit testing. You may have also noted that the lighting of the GameObject on the screen of your iOS device is not consistent with the ...
4. Hit Testing and Lighting
Get Beginning iOS AR Game Development: Developing Augmented Reality Apps with Unity and C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.