Posted By: er_willy
Move a camera without c_move - 02/06/09 21:27
hello
I want to move the camera on x and y using the mouse:
tempo is a 3d vector
But my vectors and matematicals skills are too low and only get the lateral move.
someone can helpme thanks.
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 thanks.