You must do the same thing as for the pan, move the camera up and down when tilting down and up, try this:

camera.z = my.z + 30 - 120*sin(camera.tilt);

Havent tried it myself but thats the general idea.