how to change the drag of a rigidbody in unity through script
public Rigidbody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
void OpenParachute()
{
rb.drag = 20;
}
void Update()
{
if (Input.GetButton("Space"))
OpenParachute();
}