So, I want to make a camera that can only go around the vertices of which was given.The camera won’t go outside from the white area. How to make that happened? Also there is a bug when I go further on the area. The camera changes the way when it reachs the half of the area. Can you help me about fixing that bug? Thank you.

I want to make a camera that can only go around the vertices of which was given.The camera won’t go outside from the white area.

Do you mean that the camera should not go into the Center of the scene where the vertices are?

Two approaches:

Instead of the camera going left/right/forward/backwards without conditions you could check with if() and dist() whether we are close to the vertices and then not allow the change of position required by the keys.

Another approach would be to think of the camera as being on a circle around the center and moving on the circle (different angle, together with cos and sin; see website | tutorials | trigonometry). Additionally to the angle you can change the radius but don’t let the radius become smaller than 99 or whatever.