I have no idea why I cannot make my cam face the location on the 3D world where I have performed a click. Am I using screen to world in a wrong way?
Here is the snippet:
p_pos = Input.mousePosition;
mainCam.transform.LookAt(mainCam.ScreenToWorldPoint(p_pos);
I actually want to do something else, which is making the camera face a location where I have made a spread gesture to zoom in. But if I get this to work, I can handle there rest… I guess…
I have alse tried to cast the mouse position to a Vector3, but nothing different happens.
Regards.