Skip to main content
←API Reference ←NianticSpatial.NSDK.AR

Compass

Interface into compass functionality.

Declaration​

public class Compass : IPlaybackDatasetUser

Properties​

NameTypeSummary
enabledbool
Used to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable location updates by calling Input.location.Start().
readonly headingAccuracyfloat
Accuracy of heading reading in degrees.
readonly magneticHeadingfloat
The heading in degrees relative to the magnetic North Pole. (Read Only)
readonly rawVectorVector3
The raw geomagnetic data measured in microteslas. (Read Only)
readonly timestampdouble
Timestamp when the heading was last time updated. (Read Only)
readonly trueHeadingfloat
The heading in degrees relative to the geographic North Pole. (Read Only)

Relationships​

implements: NianticSpatial.NSDK.AR.Subsystems.Playback.IPlaybackDatasetUser