SDKVariants.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Ximmerse.XR.Tag;
  5. namespace Ximmerse.XR
  6. {
  7. /// <summary>
  8. /// SDK variants
  9. /// </summary>
  10. public static class SDKVariants
  11. {
  12. /// <summary>
  13. /// The tracking data directory (external)
  14. /// </summary>
  15. public const string kTrackingDataDir_External = "/sdcard/vpusdk/marker_calib";
  16. /// <summary>
  17. /// The tracking data directory (internal)
  18. /// This is Application.persisentDocument at android
  19. /// </summary>
  20. public static string kTrackingDataDir_Internal
  21. {
  22. get; internal set;
  23. }
  24. /// <summary>
  25. /// Is SDK supported at the current platform.
  26. /// </summary>
  27. public static bool IsSupported
  28. {
  29. get; internal set;
  30. }
  31. /// <summary>
  32. /// The currently active ground plane layout.
  33. /// </summary>
  34. public static GroundPlaneLayout groundPlaneLayout
  35. {
  36. get; internal set;
  37. }
  38. /// <summary>
  39. /// VPU shift positional offset
  40. /// </summary>
  41. public static readonly Vector3 kVPU_Shift = new Vector3(0.025f - 0.0238f, 0.0809f - 0.03f, 0.1412f);
  42. /// <summary>
  43. /// VPU tilt euler offset
  44. /// </summary>
  45. public static readonly Vector3 kVPU_TiltEuler = new Vector3(35, 0, 0);
  46. /// <summary>
  47. /// tracking anchor offset to eye.
  48. /// </summary>
  49. public static Matrix4x4 TrackingAnchor
  50. {
  51. get; internal set;
  52. }
  53. /// <summary>
  54. /// If true, tracked marker's gizmos is draw per frame.
  55. /// </summary>
  56. public static bool DrawTrackedMarkerGizmos
  57. {
  58. get; internal set;
  59. }
  60. public static bool DrawDetailTrackedInfo
  61. {
  62. get; internal set;
  63. }
  64. }
  65. }