EARWorldAlignment

Options for how the scene's coordinate system is constructed. This feature is used by ARKit.

Windows
MacOS
Linux

References

Module

AugmentedReality

Header

/Engine/Source/Runtime/AugmentedReality/Public/ARSessionConfig.h

Include

#include "ARSessionConfig.h"

Syntax

enum EARWorldAlignment
{
    Gravity,
    GravityAndHeading,
    Camera,
}

Values

Name

Description

Gravity

The coordinate system is aligned with gravity, defined by the vector (0, -1, 0).

GravityAndHeading

The coordinate system is aligned with gravity, defined by the vector (0, -1, 0), and compass heading based on True North, defined by the vector (0, 0, -1).

Camera

The coordinate system matches the camera's orientation. This option is recommended for Face AR.

Remarks

Options for how the scene's coordinate system is constructed. This feature is used by ARKit.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss