AR + GPS Location  3.0.0
All Classes Namespaces Functions Variables Properties Events Pages
ARLocation.ARLocationOrientation Class Reference

This component should be placed on the "ARLocationRoot" GameObject (which should be a child of the "AR Session Origin") for correctly aligning the coordinate system to the north/east geographical lines. More...

Inheritance diagram for ARLocation.ARLocationOrientation:
ARLocation.Utils.Singleton< ARLocationOrientation >

Classes

class  OnBeforeOrientationUpdatedEvent
 

Public Member Functions

void Restart ()
 Restarts the orientation tracking. More...
 
- Public Member Functions inherited from ARLocation.Utils.Singleton< ARLocationOrientation >
virtual void Awake ()
 

Public Attributes

uint MaxNumberOfUpdates = 4
 
int AverageCount = 150
 Only update after measuring the heading N times, and take the average. More...
 
bool UseRawUntilFirstAverage = true
 If set to true, use raw heading values until measuring the first average. More...
 
float MovementSmoothingFactor = 0.015f
 The smoothing factor. Zero means disabled. Values around 100 seem to give good results. More...
 
float TrueNorthOffset
 A custom offset to the device-calculated true north direction. More...
 
bool ApplyCompassTiltCompensationOnAndroid = true
 
double LowPassFilterFactor = 0.9
 
UnityEvent OnOrientationUpdated = new UnityEvent()
 
OnBeforeOrientationUpdatedEvent OnBeforeOrientationUpdated = new OnBeforeOrientationUpdatedEvent()
 

Additional Inherited Members

- Properties inherited from ARLocation.Utils.Singleton< ARLocationOrientation >
static T Instance [get]
 Access singleton instance through this propriety. More...
 

Detailed Description

This component should be placed on the "ARLocationRoot" GameObject (which should be a child of the "AR Session Origin") for correctly aligning the coordinate system to the north/east geographical lines.

Definition at line 18 of file ARLocationOrientation.cs.

Member Function Documentation

◆ Restart()

void ARLocation.ARLocationOrientation.Restart ( )

Restarts the orientation tracking.

Definition at line 88 of file ARLocationOrientation.cs.

Member Data Documentation

◆ AverageCount

int ARLocation.ARLocationOrientation.AverageCount = 150

Only update after measuring the heading N times, and take the average.

Definition at line 35 of file ARLocationOrientation.cs.

◆ MovementSmoothingFactor

float ARLocation.ARLocationOrientation.MovementSmoothingFactor = 0.015f

The smoothing factor. Zero means disabled. Values around 100 seem to give good results.

Definition at line 49 of file ARLocationOrientation.cs.

◆ TrueNorthOffset

float ARLocation.ARLocationOrientation.TrueNorthOffset

A custom offset to the device-calculated true north direction.

Definition at line 57 of file ARLocationOrientation.cs.

◆ UseRawUntilFirstAverage

bool ARLocation.ARLocationOrientation.UseRawUntilFirstAverage = true

If set to true, use raw heading values until measuring the first average.

Definition at line 41 of file ARLocationOrientation.cs.


The documentation for this class was generated from the following file: