ARLocationConfig.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using UnityEngine;
  2. namespace ARLocation
  3. {
  4. /// <summary>
  5. /// This scriptable object holds the global configuration data for the AR + GPS
  6. /// Location plugin.
  7. /// </summary>
  8. [CreateAssetMenu(fileName = "ARLocationConfig", menuName = "AR+GPS/ARLocationConfig")]
  9. public class ARLocationConfig : ScriptableObject
  10. {
  11. public static string Version
  12. {
  13. get
  14. {
  15. return "v3.7.1";
  16. }
  17. }
  18. [Tooltip("The Earth's mean radius, in kilometers, to be used in distance calculations.")]
  19. public double EarthMeanRadiusInKM = 6372.8;
  20. [Tooltip("The equatorial Earth radius, in kilometers, used in geo-location calculations.")]
  21. public double EarthEquatorialRadiusInKM = 6378.137;
  22. [Tooltip("The Earth's eccentricuty squared, used in geo-location calculations.")]
  23. public double EarthFirstEccentricitySquared = 0.00669437999014;
  24. [Tooltip("The initial ground height guess, relative from the device position.")]
  25. [Range(0, 10)]
  26. public float InitialGroundHeightGuess = 1.4f;
  27. [Tooltip("The initial ground height guess, relative from the device position.")]
  28. [Range(0, 10)]
  29. public float MinGroundHeight = 0.4f;
  30. [Tooltip("The initial ground height guess, relative from the device position.")]
  31. [Range(0, 10)]
  32. public float MaxGroundHeight = 3.0f;
  33. [Tooltip("The distance between Vuforia ground plane hit tests. Lower will be more precise but will affect performance.")]
  34. public float VuforiaGroundHitTestDistance = 4.0f;
  35. [Tooltip("The smoothing factor for object height adjustments.")]
  36. [Range(0, 1)]
  37. public float GroundHeightSmoothingFactor = 0.05f;
  38. [Tooltip("If true, use Vuforia instead of ARFoundation.")]
  39. public bool UseVuforia;
  40. [Tooltip("If true, geo-positioning calculations are performed by callind a user defined static method, 'ArGpsCustomGeoCalc.HorizontalVectorFromTo(Location l1, Location l1)'.")]
  41. public bool UseCustomGeoCalculator;
  42. }
  43. }