My rigidbody has a velocity and I defined a variable float drag = 0.995f so that:
void FixedUpdate(){
rb.velocity *= drag;
}
It's working fine but I guess I have to use Time.deltaTime to make the drag time-consistent, so my question is how to write a time-consistent drag formula? Should I just set drag as a really big value and write rb.velocity *= drag * Time.deltaTime and tune drag until I'm satisfied?
I just thought of using rb.velocity *= (1 - drag * Time.deltaTime) and it seems to be working fine.