hello

I want to move the camera on x and y using the mouse:

Code:
		//Move
		if  (mouse_left == 1)	
		{		


			vec_for_angle(tempo,camera.pan);
			
			//movimientos laterales	
			camera.x += (mouse_force.x * time_step) * tempo.y;	//movimientos laterales			
			camera.y -= (mouse_force.x * time_step) * tempo.x; //* tempo.x;	//movimientos laterales	
		
		}

tempo is a 3d vector

But my vectors and matematicals skills are too low and only get the lateral move.

someone can helpme smile thanks.


Last edited by er_willy; 02/06/09 21:27.