vec_set(camera.x,my.x);
camera.x -= 100*cosv(camera.pan);
camera.y -= 100*sinv(camera.pan);

camera.pan += mouse_force.x*time_step*10;

100 is camera distance, 10 is camera pan speed. my is the entity that camera is fixed to.

untested

Last edited by Quadraxas; 06/07/09 19:52.

3333333333