Hello, I have been searching with no luck on how to get an object to face where ever the player points on the screen with the mouse. i have created a top down view game were the player walks with w,a,s,d, i would like him to shoot, but i want him to shoot in the direction of where the mouse pointer is located on screen. ( If that makes sense ):spin:
If anyone knows how i can achieve this please let me know
i have seen you ask another question about parenting to mouse.
You can use my example of the rotate, but either center the empty in the cube and parent them, or add another script to the cube: