---
title: AROrientationTrackingConfiguration
framework: arkit
role: symbol
role_heading: Class
path: arkit/arorientationtrackingconfiguration
---

# AROrientationTrackingConfiguration

A configuration that tracks only the device’s orientation using the rear-facing camera.

## Declaration

```swift
class AROrientationTrackingConfiguration
```

## Overview

Overview All AR configurations establish a correspondence between the real world the device inhabits and a virtual 3D coordinate space where you can model content. When your app displays that content together with a live camera image, the user experiences the illusion that your virtual content is part of the real world. Creating and maintaining this correspondence between spaces requires tracking the device’s motion. The AROrientationTrackingConfiguration class tracks the device’s movement with three degrees of freedom (3DOF): specifically, the three rotation axes (roll, pitch, and yaw). This basic level of motion tracking can create limited AR experiences: A virtual object can appear to be part of the real world, even as the user rotates the device to look above, below, or beside that object. However, this configuration cannot track movement of the device: non-trivially changing the device’s position breaks the AR illusion, causing virtual content to appear to drift relative to the real world. For example, the user cannot walk around to see the sides and back of a virtual object. Additionally, 3DOF tracking does not support plane detection or hit testing. important: Because 3DOF tracking creates limited AR experiences, you should generally not use the AROrientationTrackingConfiguration class directly. Instead, use ARWorldTrackingConfiguration for six degrees of freedom (6DOF) plane detection and hit testing. Use 3DOF tracking only as a fallback in situations where 6DOF tracking is temporarily unavailable.

## Topics

### Creating a Configuration

- [init()](arkit/arorientationtrackingconfiguration/init().md)

### Managing Device Camera Behavior

- [isAutoFocusEnabled](arkit/arorientationtrackingconfiguration/isautofocusenabled.md)

## Relationships

### Inherits From

- [ARConfiguration](arkit/arconfiguration.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Spatial Tracking

- [Understanding World Tracking](arkit/understanding-world-tracking.md)
- [ARWorldTrackingConfiguration](arkit/arworldtrackingconfiguration.md)
- [ARGeoTrackingConfiguration](arkit/argeotrackingconfiguration.md)
- [ARPositionalTrackingConfiguration](arkit/arpositionaltrackingconfiguration.md)
