© Allan Fowler 2019
Allan FowlerBeginning iOS AR Game Developmenthttps://doi.org/10.1007/978-1-4842-3618-5_4

4. Hit Testing and Lighting

Allan Fowler1 
(1)
Marietta, GA, USA
 

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 ...

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.