I am trying to let camera rotate around an object. i use the function rotatearound(point,vector,timedelta). Now i have got the point, i want to know the vector,which i want it to be camera’s x axis.
i have try the function cam.screentoworldpoint,it doesn’t work.
Camera’s live in world space, so you don’t need to convert from Screen to World. From a script attached to the camera, you can use transform.right
as the camera’s ‘x’ axis in world space. Or if the script is attached to another game object and you are using the default camera, you can use camera.main.transform.right
.