Code:

function update_views()
{
dist_planar = cos (-camera.tilt) * dist_total;
camera.pan = player.pan;
camera.tilt = -70; //play with this value
camera.x = player.x - cos(player.pan)*cos(-player.tilt)*zoom;
camera.y = player.y - sin(player.pan)*cos(-player.tilt)*zoom;
camera.z = player.z + sin(-camera.tilt)*zoom;
camera.pan = cam_angle;
camera.roll = 0;
validate_view();
}


This _should_ work but I've not tested it

EDIT:
which tutorial did you follow?
could you please post a link and I'll might take a look at it to see what the author did intend to do, and how I can help you out.

Last edited by Thunder; 07/18/06 19:25.