Contents

ARWorldTrackingConfiguration

A configuration that tracks the position of a device in relation to objects in the environment.

Declaration

class ARWorldTrackingConfiguration

Mentioned in

Overview

The ARWorldTrackingConfiguration class tracks the device’s movement with six degrees of freedom (6DOF): the three rotation axes (roll, pitch, and yaw), and three translation axes (movement in x, y, and z).

This kind of tracking can create immersive AR experiences: A virtual object can appear to stay in the same place relative to the real world, even as the user tilts the device to look above or below the object, or moves the device around to see the object’s sides and back.

[Image]

World-tracking sessions also provide several ways for your app to recognize or interact with elements of the real-world scene visible to the camera:

  • Find real-world horizontal or vertical surfaces with planeDetection. Add the surfaces to the session as ARPlaneAnchor objects.

  • Recognize and track the movement of 2D images with detectionImages. Add 2D images to the scene as ARImageAnchor objects.

  • Recognize 3D objects with detectionObjects. Add 3D objects to the scene as ARObjectAnchor objects.

  • Find the 3D positions of real-world features that correspond to a touch point on the device’s screen with ray casting.

Topics

Creating a Configuration

Tracking Surfaces

Detecting or Tracking Images

Detecting 3D Objects

Tracking the User’s Face

Creating Realistic Reflections

Managing Device Camera Behavior

Enabling Collaboration

Accessing App Clip Codes

See Also

Spatial Tracking