The camera doesn't vary much in height on the Z axis, and the content it sees varies greatly

I did it according to the help you gave me, and found that the first way achieved the effect I expected!

But the second way, like, Y-coordinate is the middle one; Z-coordinate is the last one. So, the variable called y is used as Z-coordinate.

The problem was that when I looked at it from higher up, I noticed that the picture was tilted and the camera wasn’t facing straight down to the ground.


Another point, I expect to be able to rotate the plane, but not flip the plane, please tell me how to deal with these two problems?

This is my modified code: