I heve the 3D cordinates of the my mouse.

Code:
vec_set(mouse_pos,mouse_cursor);	
		
		target_from.x = mouse_pos.x;
		target_from.y = mouse_pos.y;
		target_from.z = 0;
		
		vec_for_screen (target_from, camera);
		target_to.x = mouse_pos.x;
		target_to.y = mouse_pos.y;
		target_to.z = mouse_range;		
		vec_for_screen (target_to, camera); 
		c_trace (target_from.x, target_to.x, IGNORE_ME | IGNORE_YOU | IGNORE_PASSENTS | IGNORE_MODELS | IGNORE_PASSABLE | USE_BOX);		//vc_set (my.x, target.x); // and place the red target model to the proper spot on the terrain
		vec_set(TARGET,target.x);



But now, I was wondering the angle of my mouse over an object.
I tried many ways but I am not succeeding!

Please could someone provide me a solution?

Last edited by NeoNeper; 07/21/13 16:06.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________