This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Assets/ARLocation/Scripts/ScriptableObjects/ARLocationConfig.cs

57 lines
2.1 KiB
C#
Raw Normal View History

using UnityEngine;
namespace ARLocation
{
/// <summary>
/// This scriptable object holds the global configuration data for the AR + GPS
/// Location plugin.
/// </summary>
[CreateAssetMenu(fileName = "ARLocationConfig", menuName = "AR+GPS/ARLocationConfig")]
public class ARLocationConfig : ScriptableObject
{
public static string Version
{
get
{
return "v4.1.0";
}
}
[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;
}
}