© Wallace Wang 2018
Wallace WangBeginning ARKit for iPhone and iPadhttps://doi.org/10.1007/978-1-4842-4102-8_13

13. Interacting with the Real World

Wallace Wang1 
(1)
San Diego, CA, USA
 

When we’ve placed virtual objects in an augmented reality view, those virtual objects can interact with each other in different ways. The simplest way two virtual objects can interact is by placing one in front of another. Then the closest virtual object blocks your view of the second virtual object.

For greater realism within an augmented reality view, you can also have real-world objects appear to block virtual objects, which is called occlusion . We can mimic a real-world object blocking the view of a virtual object by creating an invisible virtual object that matches ...

Get Beginning ARKit for iPhone and iPad: Augmented Reality App Development for iOS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.