People occlusion
Description
Until fairly recently, the depth of other real world items in a scene (for example people) wasn't taken into account when ARKit was placing nodes in the scene. Therefore the AR nodes would always appear in front of anything between them and the camera.
In more recent versions of ARKit, we can turn on a setting that will take the depth of other real world objects into account.
This feature is only supported by more recent phones and will crash the app if not supported by the phone. So if you intend to use this feature, you should programatically check whether the phone supports it (see code).
To enable this, on the ARWorldTrackingConfiguration, set the property FrameSemantics to ARFrameSemantics.PersonSegmentationWithDepth as can be seen in the code below.
Video
No video yet
Code
Next Step : Place nodes at regular intervals
After you have mastered this you should try Place nodes at regular intervals