How can I let an object rotate towards its direction of movement

Hello Unity Community, I haven an object (rigidbody2D) in 2D space wich is moving via addforce. Now I wanted to know how I can manage it to let it rotate towards its direction of movement, like an arrow for example.

I am very new to unity and have no clue how to make this work, I’ve been working on it for hours.

Please help!! Thank you.

If it’s 2D, can you do transform.up = rigidbody.velocity? That tells it to face the direction of movement. If it was 3D, you could use transform.forward.

Its working beautifully thank you.