SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.8 KiB

4 years ago
  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.4.1";
  16. }
  17. }
  18. public enum ARLocationDistanceFunc
  19. {
  20. Haversine,
  21. PlaneSpherical,
  22. PlaneEllipsoidalFcc
  23. };
  24. [Tooltip("The earth radius, in kilometers, to be used in distance calculations.")]
  25. public double EarthRadiusInKM = 6372.8;
  26. [Tooltip("The distance function used to calculate geographical distances.")]
  27. public ARLocationDistanceFunc DistanceFunction = ARLocationDistanceFunc.Haversine;
  28. [Tooltip("The initial ground height guess, relative from the device position.")]
  29. [Range(0, 10)]
  30. public float InitialGroundHeightGuess = 1.4f;
  31. [Tooltip("The initial ground height guess, relative from the device position.")]
  32. [Range(0, 10)]
  33. public float MinGroundHeight = 0.4f;
  34. [Tooltip("The initial ground height guess, relative from the device position.")]
  35. [Range(0, 10)]
  36. public float MaxGroundHeight = 3.0f;
  37. [Tooltip("The distance between Vuforia ground plane hit tests. Lower will be more precise but will affect performance.")]
  38. public float VuforiaGroundHitTestDistance = 4.0f;
  39. [Tooltip("The smoothing factor for object height adjustments.")]
  40. [Range(0, 1)]
  41. public float GroundHeightSmoothingFactor = 0.05f;
  42. [Tooltip("If true, use Vuforia instead of ARFoundation.")]
  43. public bool UseVuforia;
  44. }
  45. }