worldAlignment
A value specifying how the session maps real-world device motion into a 3D scene coordinate system.
Declaration
var worldAlignment: ARConfiguration.WorldAlignment { get set }Mentioned in
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 ARConfiguration.WorldAlignment for possible values.