Given the code:
using UnityEngine;
public class LevelControl : MonoBehaviour
{
[Tooltip("% Earth Standard Gravity")]
[SerializeField] float gravityFactor = 0.167f; // initialize to Luna's gravity
[Tooltip("1 = 1 standard atmospher")]
[SerializeField] float atmosphericDensity = 0.000001f;
const float atmosphericDrag = 2f; // amount of drag at 1 standard atmosphere
const float standardGravity = -9.81f; // 1 standard Earth Gravity
private void Start()
{
Physics.gravity = Vector3.down * (gravityFactor * standardGravity);
}
public float GetDrag() { return atmosphericDensity * atmosphericDrag; }
}
I need to find the correct number for the atmosphericDrag. Any suggestions?