hello,

Here is an example to create a camera. you attach this action on a model :

Code:
action free_camera()
{
	set(my,INVISIBLE);
	set(my,PASSABLE);
	
	while (1)
	{
		my.pan -= 10 * mouse_force.x * time_step;
		my.tilt += 10 * mouse_force.y * time_step;
		
		c_move(my,vector ((key_w-key_s)*30*time_step,(key_a-key_d)*30*time_step,0),nullvector,IGNORE_PASSABLE|GLIDE);
		
		vec_set(camera.x, my.x);
		vec_set(camera.pan,my.pan);
		
		wait(1);
	}
}



here a example of free camera link

Last edited by djfeeler; 06/12/11 19:33.