Hi I have the following two views

vec_set(camera.x,my.x);
vec_set(camera.z, my.z );
vec_set(camera.pan, my.pan);
vec_set(camera.tilt, my.tilt);
vec_set(camera.roll, my.roll);
vec_set(camera.x,vector(-20,0,8));
vec_rotate(camera.x,my.pan);
vec_add(camera.x,my.x);
vec_set(camera.pan,nullvector);
ang_add(camera.pan,my.pan);


and

vec_set(camera.x,my.x);
vec_set(camera.z, my.z );
vec_set(camera.pan, my.pan);
vec_set(camera.tilt, my.tilt);
vec_set(camera.roll, my.roll);
vec_set(camera.x,vector(0,0,0));
vec_rotate(camera.x,my.pan);
vec_add(camera.x,my.x);
vec_set(camera.pan,nullvector);
ang_add(camera.pan,my.pan);

i combined them via an IF-expression what leads to the funtion that when i press and hold down the key t, the view is changed.

But what have I to do that it is not longer necessary to hold down "t" to or release "t" to switch the views.
Hope u can understand me

Last edited by vargur; 02/17/09 16:18.