Rotating an object in an arc.

I have a rocket that is being fired in an arc (the arc depends on what firing angle the player chooses). I want that rocket to rotate GRADUALLY according to the arc - right now the rocket does not rotate at all, which looks odd (if I were to fire the rocket upward, it would land on it’s tail, not the head). So at the peak of the arc, the rocket should be level with the ground. How can I make a rocket rotate gradually according to it’s trajectory (this is in 3D, not 2D)?

Assuming you use physics with a rigidbody to move the rocket and that your rocket is pointing along the blue arrow of your transform, you could execute this line every fixed update:

rocket.transform.forward = rocket.rigidbody.velocity;

Thanks! Works perfectly!