third person shooter player follow the crosshair

hi , im having a hard time finding a correct way to make the hero looking straight to the cross hair when pressing the mouse button (like in dead space or gta ) i thought using a look at script type but haven’t succeed. i was hoping that someone could show me how to make it happened or just point me to a tutorial on it.

If you use LookAt, you’d have to make sure the crosshair is touching the object he’s aiming at. I would say the best way to go about doing this is to use Raycast (Look up physics.RaycastAll). If you shoot a raycast when the user clicks, you can use RaycastAll to get the hit point (where the raycast hits an object) and have the gun use Look At to look at the hit point.

(I went through a little time to draw you an example below)