How to make a projectile rotate to it's trajectory?

I want to make a projectile rotate towards the direction it’s moving, I’m assuming there’s a good way to do that because it seems like something not too hard but I can’t find it.

These examples may also help,