using UnityEngine; namespace ARLocation { /// /// This scriptable object holds the global configuration data for the AR + GPS /// Location plugin. /// [CreateAssetMenu(fileName = "ARLocationConfig", menuName = "AR+GPS/ARLocationConfig")] public class ARLocationConfig : ScriptableObject { public static string Version { get { return "v3.7.1"; } } [Tooltip("The Earth's mean radius, in kilometers, to be used in distance calculations.")] public double EarthMeanRadiusInKM = 6372.8; [Tooltip("The equatorial Earth radius, in kilometers, used in geo-location calculations.")] public double EarthEquatorialRadiusInKM = 6378.137; [Tooltip("The Earth's eccentricuty squared, used in geo-location calculations.")] public double EarthFirstEccentricitySquared = 0.00669437999014; [Tooltip("The initial ground height guess, relative from the device position.")] [Range(0, 10)] public float InitialGroundHeightGuess = 1.4f; [Tooltip("The initial ground height guess, relative from the device position.")] [Range(0, 10)] public float MinGroundHeight = 0.4f; [Tooltip("The initial ground height guess, relative from the device position.")] [Range(0, 10)] public float MaxGroundHeight = 3.0f; [Tooltip("The distance between Vuforia ground plane hit tests. Lower will be more precise but will affect performance.")] public float VuforiaGroundHitTestDistance = 4.0f; [Tooltip("The smoothing factor for object height adjustments.")] [Range(0, 1)] public float GroundHeightSmoothingFactor = 0.05f; [Tooltip("If true, use Vuforia instead of ARFoundation.")] public bool UseVuforia; [Tooltip("If true, geo-positioning calculations are performed by callind a user defined static method, 'ArGpsCustomGeoCalc.HorizontalVectorFromTo(Location l1, Location l1)'.")] public bool UseCustomGeoCalculator; } }