Apply drag on local axis

I need to apply drag on the Y and X local axis of a rigidbody.
Now I’m doing it this way:

rigidbody.velocity *= 0.985;

I know it applies drag on all axis, but if I do it this way:

rigidbody.velocity.x *= 0.985;

It will apply drag on the X axis in world coordinates.
¿How could I apply drag on local axis?

There is many ways to convert from local to world coordinates (you can for it). One of the ways is multiply with object rotation like “transform.rotation * new Vector3(1, 0, 0)”