xs *= 0.9;
xs += (key_w-key_s)*speed*time_step;
ps *= 0.9;
ts *= 0.9;
rs *= 0.9;
ps -= (mouse_force.x)*speed*time_step;
ts += (mouse_force.y)*speed*time_step;
rs += (key_d-key_a)*time_step;
c_rotate(me,vector(ps,ts,rs),GLIDE|IGNORE_YOU|IGNORE_PASSABLE|IGNORE_SPRITES);
c_move(me,vector(xs*time_step,ys*time_step,zs*time_step),nullvector,GLIDE|IGNORE_PASSABLE|IGNORE_SPRITES);
vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);