XRSPACE Developer Console

API - XRTrackerData

Only for Tracker use.

Contents

Propertie

  • public SensorAccuracyLevel AccAccuracyLevel { get; }

Description Return tracker accelerometer accuracy level.


  • public Vector3 Accelerometer { get; }

Description Return tracker accelerometer information.


  • public int Battery { get; }

Description Return tracker battery in percent.


  • public boolean Button { get; }

Description Return button’s status. Return true when button is pressing, return false when is release.


  • public boolean ButtonDown { get; }

Description Returns true during the frame the user pressed down the button.

You need to call this function from the Update function, since the state gets reset each frame. It will not return true until the user has released the key and pressed it again.


  • public boolean ButtonUp { get; }

Description Return true the first frame when user pressed release the button.


  • public XRDeviceType DeviceType { get; }

Description Return device type.


  • public SensorAccuracyLevel GyroAccuracyLevel { get; }

Description Return tracker gyroscope accuracy level.


  • public Vector3 Gyroscope { get; }

Description Return tracker gyroscope information.


  • public Vector3 LinearAcc { get; }

Description Return tracker linear acceleterator information.


  • public Vector3 Magnetic { get; }

Description Return tracker magnetic information.


  • public Vector3 Position { get; }

Description Return tracker posotion information.


  • public SensorAccuracyLevel RotAccuracyLevel { get; }

Description Return tracker rotation accuracy level.


  • public Quaternion Rotation { get; }

Description Return tracker rotation information.


  • public Int64 Timestamp { get; }

Description Return this data’s update time.