Skip to main content

class ARWorldPositioningCameraHelper

(Niantic.Experimental.Lightship.AR.WorldPositioning.ARWorldPositioningCameraHelper)

Overview

ARWorldPositioningCameraHelper provides information relating to the world position of a camera and implements 'Heads Down Mode' to improve user comfort during extended gameplay.

    class ARWorldPositioningCameraHelper: MonoBehaviour {
public:

enumCameraControlMode;

// properties

float TrueHeading;
double Latitude;
double Longitude;
double Altitude;
Quaternion RotationCameraRUFToWorldEUN;
Vector3 Forward;
CameraControlMode CameraMode;

// methods

void ToggleHeadsDownMode();
void Awake();
void OnDisable();
};

Detailed Documentation

ARWorldPositioningCameraHelper provides information relating to the world position of a camera and implements 'Heads Down Mode' to improve user comfort during extended gameplay.

Properties

TrueHeading

float TrueHeading

The heading of the camera relative to true north, measured in degrees

Latitude

double Latitude

The latitude of the camera, measured in degrees

Longitude

double Longitude

The longitude of the camera, measured in degrees

Altitude

double Altitude

The altitude of the camera, measured in metres above sea level

RotationCameraRUFToWorldEUN

Quaternion RotationCameraRUFToWorldEUN

The rotation from camera coordinates (Right-Up-Forwards) to global geographic coordinates (East-Up-North)

Forward

Vector3 Forward

The camera forward vector in global geographic coordinates (East-Up-North)

CameraMode

CameraControlMode CameraMode

The CameraMode The selected CameraControlMode for the camera