Skip to main content
←API Reference ←com.nianticspatial.nsdk.vps2

HeadingMode


Declaration​

enum class HeadingMode

Summary​

Controls how the heading is computed from the device's orientation. Mirrors ARDK_HeadingMode.


Properties​

NameTypeSummary
valueInt
-

Cases​

NameTypeSummary
CAMERA_DIRECTIONCAMERA_DIRECTION
Heading from the camera's forward axis (perpendicular to screen).
Best when the device is held upright in portrait or landscape.
DEVICE_TOPDEVICE_TOP
Heading from the top edge of the screen, accounting for display orientation.
Best when the device is held face-up or for compass widgets.