Hello everyone,
as specified in the title, I am trying to reposition my camera after a click, but I do not know how to set the correct position and rotation in order to show exactly what I want on the screen. I mean, I know I can mess with with the rotation, position, but I just can’t achieve the desired result.
Basically, what I want is, when I click, to change from top-down view to a side view. That is all.
I tried to manually set the position and rotation, but didn’t work as expected because the main object (outlined in the picture) was positioned correctly before changing the point of view, and after changing, it wasn’t - actually it still where I want, but the camera, due to the rotation, isn’t showing it where I want on the screen.
About the code, I tried something like:
function Update () {
if (Input.GetMouseButtonDown (0)) {
//Change position to A
//Change rotation to A
}
else if (Input.GetMouseButtonDown (1)) {
//Change position to B
//Change rotation to B
}
}
Thank you in advance
