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?