How to make a prefab face the direction it is moving?

Hi, I have a shark that goes up and down through vectors and gravity, but how do I rotate it towards its direction it is going? So facing up or down.

Just set the gameObjects rotation.

    gameObject.tranform.rotation = new Vector3(//Whatever your rotation is);

I think Z or X is supposed to be the default face direction for all character models