DeviceParam.cs 734 B

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. public class DeviceParam
  3. {
  4. public struct Vector4Int
  5. {
  6. [SerializeField]
  7. public int x, y, z, w;
  8. public Vector4Int(int x, int y, int z, int w)
  9. {
  10. this.x = x;
  11. this.y = y;
  12. this.z = z;
  13. this.w = w;
  14. }
  15. }
  16. /// <summary>
  17. /// The index to retrieve the raw positional float[] array from VPU.
  18. /// [1,0,2] : for vertical VPU.
  19. /// [0,1,2] : for horizontal VPU.
  20. /// </summary>
  21. public static Vector3Int RawPositionIndex = new Vector3Int(1, 0, 2);
  22. public static Vector4Int RawRotationIndex = new Vector4Int(0, 1, 2, 3);
  23. public static Vector3 MarkerPosePreTiltEuler = new Vector3(-180, 0, 90);
  24. }