How do i made that my player which is a circle spins when it moves, like a real one in real life

I need help moving my circle, it is a “pill” in game (moderator: what does it even mean?).

I tried using RigidBody2D and enable the z movement, so it spins but when i change direction, it still spins, that’s because the sprite is affected by the physics, but i want to do it by code. here’s the code of movement.

float h = Input.GetAxis( "Horizontal" );
rb2d.AddForce( Vector2.right * speed * h );

rb2d.angularVelocity controls spinning force.