/// This script will adjust the player's virtual height to match the 'DesiredPlayerHeight' property.
/// For example, if the player's height is 1.5 meters tall, but the DesiredPlayerHeight = 1.6, then the player's virtual height will be increased by 0.1.
/// </summary>
publicclassCalibratePlayerHeight:MonoBehaviour{
[Tooltip("Desired height of the player in meters. The player's presence in vr will be adjusted based on their physical height. 1.65 meters = 5.41 feet")]
publicfloatDesiredPlayerHeight=1.65f;
[Tooltip("Adjust the CharacterControllerYOffset property of this playerController. If not specified one will be found using GetComponentInChildren()")]
publicBNGPlayerControllerPlayerController;
[Header("Startup")]
[Tooltip("If true, the player's virtual height will be adjusted to match DesiredPlayerHeight on Start()")]
publicboolCalibrateOnStart=true;
[Header("Input :")]
[Tooltip("If specified, pressing this button / action will activate the calibration")]