Hi,

Anyone know how to modify this code for change the position of the camera relatively to player?

camera.x = my.x + fcos((camera.pan),cam_focus);
camera.y = my.y + fsin((camera.pan),cam_focus);
camera.z = my.z+60 + fsin(camera.tilt,cam_dist);

I want to make a 3rd person camera 'over shoulder' like in Gear of war, Spinter Cell...ect , where's the camera are placed a little from right of the player.

I tried to add a value (-35) like that:

camera.y = my.y - 35 + fsin((camera.pan),cam_focus);

But now the camera dont pan correctly whit the player model...

I know there's other way to code a camera like that but i want too know if its possible to just add something to this code for get it work.

Thx

Last edited by Altarius; 01/01/11 06:31.