Instance Property

worldAlignment

A value specifying how the session maps real-world device motion into a 3D scene coordinate system.

Declaration

@property(nonatomic, assign) ARWorldAlignment worldAlignment;

Discussion

Creating an AR experience depends on being able to construct a coordinate system for placing objects in a virtual 3D world that maps to the real-world position and motion of the device. When you run a session configuration, ARKit creates a scene coordinate system based on the position and orientation of the device; any ARAnchor objects you create or that the AR session detects are positioned relative to that coordinate system.

See ARWorldAlignment for possible values.

See Also

Configuring the AR Session

lightEstimationEnabled

A Boolean value specifying whether ARKit analyzes scene lighting in captured camera images.

ARWorldAlignment

Options for how ARKit constructs a scene coordinate system based on real-world device motion.